struct Cryscord::User

Defined in:

user.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : Snowflake, username : String, discriminator : String, global_name : String | Nil, avatar : String | Nil, bot : Bool | Nil, system : Bool | Nil, mfa_enabled : Bool | Nil, banner : String | Nil, accent_color : UInt32 | Nil, verified : Bool | Nil, email : String | Nil, flags : UserFlags | Nil, premium_type : PremiumType, public_flags : UserFlags | Nil, avatar_decoration : String | Nil, locale : Locale | Nil = Locale.default_locale) #

[View source]

Instance Method Detail

def accent_color : UInt32 | Nil #

def avatar : String | Nil #

def avatar_decoration : String | Nil #

def banner : String | Nil #

def bot : Bool | Nil #

def clone #

[View source]
def copy_with(id _id = @id, username _username = @username, discriminator _discriminator = @discriminator, global_name _global_name = @global_name, avatar _avatar = @avatar, bot _bot = @bot, system _system = @system, mfa_enabled _mfa_enabled = @mfa_enabled, banner _banner = @banner, accent_color _accent_color = @accent_color, verified _verified = @verified, email _email = @email, flags _flags = @flags, premium_type _premium_type = @premium_type, public_flags _public_flags = @public_flags, avatar_decoration _avatar_decoration = @avatar_decoration, locale _locale = @locale) #

[View source]
def discriminator : String #

def email : String | Nil #

def flags : UserFlags | Nil #

def global_name : String | Nil #

def id : Snowflake #

def locale : Locale | Nil #

def mfa_enabled : Bool | Nil #

def premium_type : PremiumType #

def public_flags : UserFlags | Nil #

def system : Bool | Nil #

def username : String #

def verified : Bool | Nil #