Skip to main content

SleepyDiscord::User

Inherits from SleepyDiscord::IdentifiableDiscordObject< User >, SleepyDiscord::DiscordObject

inherited members​

Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< User >

Name
using IdentifiableDiscordObject< Derived >Parent
using Snowflake< Derived >Identifier

Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< User >

Name
IdentifiableDiscordObject() =default
IdentifiableDiscordObject(Snowflake< Derived > id)
operator Snowflake< Derived > &()
boolempty() const
voidmerge(Derived & changes)
template <class DiscordObject >
bool
operator==(const Snowflake< DiscordObject > & right) const
template <class DiscordObject >
bool
operator!=(const Snowflake< DiscordObject > & right) const
booloperator==(const Snowflake< Derived > & right) const
booloperator!=(const Snowflake< Derived > & right) const
booloperator==(const IdentifiableDiscordObject< Derived > & right) const
booloperator!=(const IdentifiableDiscordObject< Derived > & right) const
const TimegetTimestamp()

Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< User >

Name
Snowflake< Derived >ID

Public Types Documentation​

enum Flags​

EnumeratorValueDescription
None0
Discord_Employee1 << 0
Discord_Partner1 << 1
HypeSquad_Events1 << 2
Bug_Hunter_Level_11 << 3
House_Bravery1 << 6
House_Brilliance1 << 7
House_Balance1 << 8
Early_Supporter1 << 9
Team_User1 << 10
System1 << 12
Bug_Hunter_Level_21 << 14
Verified_Bot1 << 16
Verified_Bot_Developer1 << 17
Discord_Certified_Moderator1 << 18

enum PremiumType​

EnumeratorValueDescription
None0
Nitro_Classic1
Nitro2

Public Functions Documentation​

function User​

User() =default

function User​

inline User(
const nonstd::string_view & json
)

function User​

User(
const json::Value & json
)

function std::make_tuple​

JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD REQUIRIED_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_NULLABLE_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD,
json::pair &::, "", ::OPTIONAL_FIELD OPTIONAL_FIELD
)

Public Attributes Documentation​

variable username​

std::string username;

variable discriminator​

std::string discriminator;

variable avatar​

std::string avatar;

variable bot​

bool bot = false;

variable mfa_enabled​

bool mfa_enabled = false;

variable verified​

bool verified = false;

variable email​

std::string email = "";

variable locale​

std::string locale = "";

variable flags​

Flags flags = Flags::None;

variable premiumType​

PremiumType premiumType = PremiumType::None;

variable publieFlags​

Flags publieFlags = Flags::None;

Updated on 13 April 2022 at 18:39:59 UTC