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 > &() | |
bool | empty() const |
void | merge(Derived & changes) |
template <class DiscordObject > bool | operator==(const Snowflake< DiscordObject > & right) const |
template <class DiscordObject > bool | operator!=(const Snowflake< DiscordObject > & right) const |
bool | operator==(const Snowflake< Derived > & right) const |
bool | operator!=(const Snowflake< Derived > & right) const |
bool | operator==(const IdentifiableDiscordObject< Derived > & right) const |
bool | operator!=(const IdentifiableDiscordObject< Derived > & right) const |
const Time | getTimestamp() |
Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< User >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum Flags​
Enumerator | Value | Description |
---|---|---|
None | 0 | |
Discord_Employee | 1 << 0 | |
Discord_Partner | 1 << 1 | |
HypeSquad_Events | 1 << 2 | |
Bug_Hunter_Level_1 | 1 << 3 | |
House_Bravery | 1 << 6 | |
House_Brilliance | 1 << 7 | |
House_Balance | 1 << 8 | |
Early_Supporter | 1 << 9 | |
Team_User | 1 << 10 | |
System | 1 << 12 | |
Bug_Hunter_Level_2 | 1 << 14 | |
Verified_Bot | 1 << 16 | |
Verified_Bot_Developer | 1 << 17 | |
Discord_Certified_Moderator | 1 << 18 |
enum PremiumType​
Enumerator | Value | Description |
---|---|---|
None | 0 | |
Nitro_Classic | 1 | |
Nitro | 2 |
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