scratchattach icon indicating copy to clipboard operation
scratchattach copied to clipboard

Pass integers in session.connect_user() as user ID values

Open slime-lol opened this issue 1 year ago • 4 comments

I am trying to make a script to get a random user, but i just realized that the session.connect_user() doesn't pass user IDs, it assumes that any string or integer value is a username.

slime-lol avatar Apr 20 '24 11:04 slime-lol

It's not possible

TheCommCraft avatar Apr 20 '24 11:04 TheCommCraft

try searching for a random studio or project and then get its author

TheCommCraft avatar Apr 20 '24 11:04 TheCommCraft

the scratch API doesn't allow getting users by id

TimMcCool avatar Apr 24 '24 16:04 TimMcCool

Actually there is a way of getting a user by id, and it will be added in the next update

TimMcCool avatar Sep 25 '24 13:09 TimMcCool

scratchattach 2.0 is released now. it has the user = session.connect_user_by_id(user_id) method

TimMcCool avatar Oct 21 '24 10:10 TimMcCool