struct Servo::Model::User
- Servo::Model::User
- Struct
- Value
- Object
Overview
Represents a User.
Included Modules
- JSON::Serializable
- Servo::Model::Identifiable
Defined in:
model/user.crConstructors
Instance Method Summary
-
#accent_color : UInt32 | Nil
The user's banner color encoded as an integer representation of a hexadecimal color code.
-
#avatar : String | Nil
The user's avatar hash.
-
#banner : String | Nil
The user's banner hash.
-
#bot : Bool | Nil
Whether the user belongs to an OAuth2 application.
-
#discriminator : String
The user's 4-digit discord-tag.
-
#email : String | Nil
The user's email.
-
#flags : UserFlags | Nil
The flags on a user's account.
-
#locale : String | Nil
The user's chosen language option.
-
#mfa_enabled : Bool | Nil
Whether the user has two factor enabled on their account.
-
#premium_type : PremiumType | Nil
The type of Nitro Subscription on a user's account.
-
#public_flags : UserFlags | Nil
The public flags on a user's account.
-
#system : Bool | Nil
Whether the user is an Official Discord System user (part of the urgent message system)
-
#username : String
The user's username, not unique across the platform.
-
#verified : Bool | Nil
Whether the email on the account has been verified.
Instance methods inherited from module Servo::Model::Identifiable
created_at : Time
created_at,
id : Servo::Model::Snowflake
id
Constructor Detail
Instance Method Detail
The user's banner color encoded as an integer representation of a hexadecimal color code.
Whether the user is an Official Discord System user (part of the urgent message system)