struct Servo::Model::User

Overview

Represents a User.

Included Modules

Defined in:

model/user.cr

Constructors

Instance Method Summary

Instance methods inherited from module Servo::Model::Identifiable

created_at : Time created_at, id : Servo::Model::Snowflake id

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def accent_color : UInt32 | Nil #

The user's banner color encoded as an integer representation of a hexadecimal color code.


[View source]
def avatar : String | Nil #

The user's avatar hash.


[View source]
def banner : String | Nil #

The user's banner hash.


[View source]
def bot : Bool | Nil #

Whether the user belongs to an OAuth2 application.


[View source]
def discriminator : String #

The user's 4-digit discord-tag.


[View source]
def email : String | Nil #

The user's email.


[View source]
def flags : UserFlags | Nil #

The flags on a user's account.


[View source]
def locale : String | Nil #

The user's chosen language option.


[View source]
def mfa_enabled : Bool | Nil #

Whether the user has two factor enabled on their account.


[View source]
def premium_type : PremiumType | Nil #

The type of Nitro Subscription on a user's account.


[View source]
def public_flags : UserFlags | Nil #

The public flags on a user's account.


[View source]
def system : Bool | Nil #

Whether the user is an Official Discord System user (part of the urgent message system)


[View source]
def username : String #

The user's username, not unique across the platform.


[View source]
def verified : Bool | Nil #

Whether the email on the account has been verified.


[View source]