scratchattach
scratchattach copied to clipboard
Pass integers in session.connect_user() as user ID values
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.
It's not possible
try searching for a random studio or project and then get its author
the scratch API doesn't allow getting users by id
Actually there is a way of getting a user by id, and it will be added in the next update
scratchattach 2.0 is released now. it has the user = session.connect_user_by_id(user_id) method