Represents a user on discord. May or may not be a member of a dpp::guild.
More...
#include <user.h>
Represents a user on discord. May or may not be a member of a dpp::guild.
◆ user()
Construct a new user object.
◆ ~user()
virtual dpp::user::~user |
( |
| ) |
|
|
virtual |
◆ fill_from_json()
Fill this record from json.
- Parameters
-
j | The json to fill this record from |
- Returns
- Reference to self
◆ get_avatar_url()
std::string dpp::user::get_avatar_url |
( |
| ) |
const |
Get the avatar url of the user object.
- Returns
- std::string avatar url
◆ has_animated_icon()
bool dpp::user::has_animated_icon |
( |
| ) |
const |
Return true if user has an animated icon.
- Returns
- true if icon is animated (gif)
◆ has_hypesquad_events()
bool dpp::user::has_hypesquad_events |
( |
| ) |
const |
Return true if user has hypesquad events.
- Returns
- true if has hypesquad events
◆ has_nitro_classic()
bool dpp::user::has_nitro_classic |
( |
| ) |
const |
Return true if user has nitro classic. This is mutually exclusive with nitro classic.
- Returns
- true if user has nitro classic
◆ has_nitro_full()
bool dpp::user::has_nitro_full |
( |
| ) |
const |
Return true if user has full nitro. This is mutually exclusive with full nitro.
- Returns
- true if user has full nitro
◆ is_bot()
bool dpp::user::is_bot |
( |
| ) |
const |
User is a bot.
- Returns
- True if the user is a bot
◆ is_bughunter_1()
bool dpp::user::is_bughunter_1 |
( |
| ) |
const |
Return true if user has the bughunter level 1 badge.
- Returns
- true if has bughunter level 1
◆ is_bughunter_2()
bool dpp::user::is_bughunter_2 |
( |
| ) |
const |
Return true if user has the bughunter level 2 badge.
- Returns
- true if has bughunter level 2
◆ is_certified_moderator()
bool dpp::user::is_certified_moderator |
( |
| ) |
const |
Return true if user is a certified moderator.
- Returns
- true if certified moderator
◆ is_discord_employee()
bool dpp::user::is_discord_employee |
( |
| ) |
const |
Return true if user is a discord employee.
- Returns
- true if user is discord staff
◆ is_early_supporter()
bool dpp::user::is_early_supporter |
( |
| ) |
const |
Return true if user is an early supporter.
- Returns
- true if early supporter
◆ is_house_balanace()
bool dpp::user::is_house_balanace |
( |
| ) |
const |
Return true if user is in house balance.
- Returns
- true if in house brilliance
◆ is_house_bravery()
bool dpp::user::is_house_bravery |
( |
| ) |
const |
Return true if user is in house bravery.
- Returns
- true if in house bravery
◆ is_house_brilliance()
bool dpp::user::is_house_brilliance |
( |
| ) |
const |
Return true if user is in house brilliance.
- Returns
- true if in house brilliance
◆ is_mfa_enabled()
bool dpp::user::is_mfa_enabled |
( |
| ) |
const |
User has multi-factor authentication enabled.
- Returns
- true if multi-factor is enabled
◆ is_partnered_owner()
bool dpp::user::is_partnered_owner |
( |
| ) |
const |
Return true if user owns a partnered server.
- Returns
- true if user has partnered server
◆ is_system()
bool dpp::user::is_system |
( |
| ) |
const |
User is a system user (Clyde)
- Returns
- true if user is a system user
◆ is_team_user()
bool dpp::user::is_team_user |
( |
| ) |
const |
Return true if user is a team user.
- Returns
- true if a team user
◆ is_verified()
bool dpp::user::is_verified |
( |
| ) |
const |
Return true if user has verified account.
- Returns
- true if verified
◆ is_verified_bot()
bool dpp::user::is_verified_bot |
( |
| ) |
const |
Return true if user has the verified bot badge.
- Returns
- true if verified bot
◆ is_verified_bot_dev()
bool dpp::user::is_verified_bot_dev |
( |
| ) |
const |
Return true if user is an early verified bot developer.
- Returns
- true if verified bot developer
◆ avatar
◆ discriminator
uint16_t dpp::user::discriminator |
Discriminator (aka tag), 4 digits usually displayed with leading zeroes
◆ flags
uint32_t dpp::user::flags |
◆ id
◆ refcount
uint8_t dpp::user::refcount |
Reference count of how many guilds this user is in
◆ username
std::string dpp::user::username |