alchemy v0.1.9 Alchemy.User
Represents a discord user. The default values exist to cover missing fields.
idrepresents a unique client id
usernamerepresents a client’s current username
discriminator4 digit tag to differenciate usernames
avatarA string representing their avatar hash. Use
avatar_urlto get the corresponding url from aUserobjectbotWhether or not the user is a bot - default:
false
A bot usually doesn’t have the authorization necessary to access these 2, so they’re usually missing.
verifiedWhether the account is verified - default:
:hiddenemailThe user’s email - default:
:hidden
Summary
Types
Functions
Used to get the url for a user’s avatar
type must be one of "png", "webp", "jpg", "gif"
size must be one of 128, 256, 512, 1024, 2048
Examples
> User.avatar_url(user)
https://cdn.discordapp.com/avatars/...