Discord::User
Inherits JSON::Serializable / Struct / Value / Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
avatar
Sourceavatar=(avatar : String | Nil)
Sourceavatar_url(size : Int32 = 128)
Produces a CDN URL to this user's avatar in the given size.
If the user has an avatar a WebP will be returned, or a GIF
if the avatar is animated. If the user has no avatar, a default
avatar URL is returned.
avatar_url(format : CDN::UserAvatarFormat, size : Int32 = 128)
Produces a CDN URL to this user's avatar, in the given format and
size. If the user has no avatar, a default avatar URL is returned.
bot
Sourcebot=(bot : Bool | Nil)
Sourcediscriminator
Sourcediscriminator=(discriminator : String)
Sourceemail
Sourceemail=(email : String | Nil)
Sourceflags
Sourceflags=(flags : UserFlags | Nil)
Sourceid
Sourceid=(id : Snowflake)
Sourcemember
Sourcemember=(member : PartialGuildMember | Nil)
Sourcemfa_enabled
Sourcemfa_enabled=(mfa_enabled : Bool | Nil)
Sourcesystem
Sourcesystem=(system : Bool | Nil)
Sourceusername
Sourceusername=(username : String)
Sourceverified
Sourceverified=(verified : Bool | Nil)
Source