D++ (DPP)  10.0.30
C++ Discord API Bot Library
user.h File Reference
#include <dpp/export.h>
#include <dpp/json_fwd.h>
#include <dpp/snowflake.h>
#include <dpp/managed.h>
#include <dpp/utility.h>
#include <dpp/json_interface.h>
Include dependency graph for user.h:
This graph shows which files directly or indirectly include this file:

Classes

class  dpp::user
 Represents a user on discord. More...
 
class  dpp::user_identified
 A user with additional fields only available via the oauth2 identify scope. More...
 

Namespaces

 dpp
 The main namespace for D++ functions.
 

Typedefs

typedef std::unordered_map< snowflake, user > dpp::user_map
 A group of users. More...
 

Enumerations

enum  dpp::user_flags : uint32_t {
  dpp::u_bot = 0b00000000000000000000000000000001,
  dpp::u_system = 0b00000000000000000000000000000010,
  dpp::u_mfa_enabled = 0b00000000000000000000000000000100,
  dpp::u_verified = 0b00000000000000000000000000001000,
  dpp::u_nitro_full = 0b00000000000000000000000000010000,
  dpp::u_nitro_classic = 0b00000000000000000000000000100000,
  dpp::u_discord_employee = 0b00000000000000000000000001000000,
  dpp::u_partnered_owner = 0b00000000000000000000000010000000,
  dpp::u_hypesquad_events = 0b00000000000000000000000100000000,
  dpp::u_bughunter_1 = 0b00000000000000000000001000000000,
  dpp::u_house_bravery = 0b00000000000000000000010000000000,
  dpp::u_house_brilliance = 0b00000000000000000000100000000000,
  dpp::u_house_balance = 0b00000000000000000001000000000000,
  dpp::u_early_supporter = 0b00000000000000000010000000000000,
  dpp::u_team_user = 0b00000000000000000100000000000000,
  dpp::u_bughunter_2 = 0b00000000000000001000000000000000,
  dpp::u_verified_bot = 0b00000000000000010000000000000000,
  dpp::u_verified_bot_dev = 0b00000000000000100000000000000000,
  dpp::u_animated_icon = 0b00000000000001000000000000000000,
  dpp::u_certified_moderator = 0b00000000000010000000000000000000,
  dpp::u_bot_http_interactions = 0b00000000000100000000000000000000,
  dpp::u_nitro_basic = 0b00000000001000000000000000000000,
  dpp::u_active_developer = 0b00000000010000000000000000000000,
  dpp::u_animated_banner = 0b00000000100000000000000000000000
}
 Various bitmask flags used to represent information about a dpp::user. More...
 

Functions

void dpp::from_json (const nlohmann::json &j, user &u)
 helper function to deserialize a user from json More...
 
void dpp::from_json (const nlohmann::json &j, user_identified &u)
 helper function to deserialize a user_identified from json More...