Users
Methods
Get current user
Fetch information about the currently to the Discord client connected user account.
Note: This doesn’t return the proper values when the game is not fully connected to the Discord client. Give it its time!
Returns Dictionary current_user
Key | Type | Description |
---|---|---|
"avatar" | String | The avatar hash of the Discord user |
"is_bot" | bool | If the user is a bot (when does this happen?) |
"discriminator" | int | The “#1234” number after the name from a user |
"id" | int | The user’s unique ID |
"username" | String | The Discord username (without discriminator) |
"avatar_url" | String | The url of the user’s avataralso returns the correct url for the default avatar.When avatar is empty a url will be generated out of discriminator % 5 . The user avatars are 512x512px and the default avatars 256x256px |