D++ (DPP)
C++ Discord API Bot Library
|
A user with additional fields only available via the oauth2 identify scope. These are not included in dpp::user as additional scopes are needed to fetch them which bots do not normally have. More...
#include <user.h>
Public Member Functions | |
user_identified & | fill_from_json (nlohmann::json *j) |
user_identified () | |
Construct a new user identified object. More... | |
virtual | ~user_identified () |
Destroy the user identified object. More... | |
std::string | get_avatar_url (uint32_t size=0) const |
Get the avatar url of the user object. More... | |
std::string | get_mention () const |
Return a ping/mention for the user. More... | |
bool | is_bot () const |
User is a bot. More... | |
bool | is_system () const |
User is a system user (Clyde) More... | |
bool | is_mfa_enabled () const |
User has multi-factor authentication enabled. More... | |
bool | is_verified () const |
Return true if user has verified account. More... | |
bool | has_nitro_full () const |
Return true if user has full nitro. This is mutually exclusive with full nitro. More... | |
bool | has_nitro_classic () const |
Return true if user has nitro classic. This is mutually exclusive with nitro classic. More... | |
bool | is_discord_employee () const |
Return true if user is a discord employee. More... | |
bool | is_partnered_owner () const |
Return true if user owns a partnered server. More... | |
bool | has_hypesquad_events () const |
Return true if user has hypesquad events. More... | |
bool | is_bughunter_1 () const |
Return true if user has the bughunter level 1 badge. More... | |
bool | is_house_bravery () const |
Return true if user is in house bravery. More... | |
bool | is_house_brilliance () const |
Return true if user is in house brilliance. More... | |
bool | is_house_balanace () const |
Return true if user is in house balance. More... | |
bool | is_early_supporter () const |
Return true if user is an early supporter. More... | |
bool | is_team_user () const |
Return true if user is a team user. More... | |
bool | is_bughunter_2 () const |
Return true if user has the bughunter level 2 badge. More... | |
bool | is_verified_bot () const |
Return true if user has the verified bot badge. More... | |
bool | is_verified_bot_dev () const |
Return true if user is an early verified bot developer. More... | |
bool | is_certified_moderator () const |
Return true if user is a certified moderator. More... | |
bool | is_bot_http_interactions () const |
Return true if user is a bot which exclusively uses HTTP interactions. Bots using HTTP interactions are always considered online even when not connected to a websocket. More... | |
bool | has_animated_icon () const |
Return true if user has an animated icon. More... | |
double | get_creation_time () const |
Get the creation time of this object according to Discord. More... | |
Public Attributes | |
utility::iconhash | banner |
Optional: the user's banner hash identify (may be empty) More... | |
uint32_t | accent_color |
Optional: the user's banner color encoded as an integer representation of hexadecimal color code identify (may be empty) More... | |
std::string | locale |
Optional: the user's chosen language option identify. More... | |
bool | verified |
Optional: whether the email on this account has been verified email. More... | |
std::string | |
Optional: the user's email email (may be empty) More... | |
std::string | username |
uint16_t | discriminator |
utility::iconhash | avatar |
uint32_t | flags |
uint8_t | refcount |
snowflake | id |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relavent to us as useful metadata. More... | |
A user with additional fields only available via the oauth2 identify scope. These are not included in dpp::user as additional scopes are needed to fetch them which bots do not normally have.
dpp::user_identified::user_identified | ( | ) |
Construct a new user identified object.
|
virtual |
Destroy the user identified object.
user_identified & dpp::user_identified::fill_from_json | ( | nlohmann::json * | j | ) |
Fill this record from json.
j | The json to fill this record from |
|
inherited |
Get the avatar url of the user object.
size | The size of the avatar in pixels, if not specified, the default size is returned. |
|
inherited |
Get the creation time of this object according to Discord.
|
inherited |
Return a ping/mention for the user.
|
inherited |
Return true if user has an animated icon.
|
inherited |
Return true if user has hypesquad events.
|
inherited |
Return true if user has nitro classic. This is mutually exclusive with nitro classic.
|
inherited |
Return true if user has full nitro. This is mutually exclusive with full nitro.
|
inherited |
User is a bot.
|
inherited |
Return true if user is a bot which exclusively uses HTTP interactions. Bots using HTTP interactions are always considered online even when not connected to a websocket.
|
inherited |
Return true if user has the bughunter level 1 badge.
|
inherited |
Return true if user has the bughunter level 2 badge.
|
inherited |
Return true if user is a certified moderator.
|
inherited |
Return true if user is a discord employee.
|
inherited |
Return true if user is an early supporter.
|
inherited |
Return true if user is in house balance.
|
inherited |
Return true if user is in house bravery.
|
inherited |
Return true if user is in house brilliance.
|
inherited |
User has multi-factor authentication enabled.
|
inherited |
Return true if user owns a partnered server.
|
inherited |
User is a system user (Clyde)
|
inherited |
Return true if user is a team user.
|
inherited |
Return true if user has verified account.
|
inherited |
Return true if user has the verified bot badge.
|
inherited |
Return true if user is an early verified bot developer.
uint32_t dpp::user_identified::accent_color |
Optional: the user's banner color encoded as an integer representation of hexadecimal color code identify (may be empty)
|
inherited |
Avatar hash
utility::iconhash dpp::user_identified::banner |
Optional: the user's banner hash identify (may be empty)
|
inherited |
Discriminator (aka tag), 4 digits usually displayed with leading zeroes
std::string dpp::user_identified::email |
Optional: the user's email email (may be empty)
|
inherited |
Flags built from a bitmask of values in dpp::user_flags
|
inherited |
Unique ID of object set by Discord. This value contains a timestamp, worker ID, internal server ID, and an incrementing value. Only the timestamp is relavent to us as useful metadata.
std::string dpp::user_identified::locale |
Optional: the user's chosen language option identify.
|
inherited |
Reference count of how many guilds this user is in
|
inherited |
Discord username
bool dpp::user_identified::verified |
Optional: whether the email on this account has been verified email.