DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
discord_core_api::bot_user Class Reference

A type of user_data, to represent the bot and some of its associated endpoints. More...

#include <FoundationEntities.hpp>

Inheritance diagram for discord_core_api::bot_user:
[legend]

Public Member Functions

void updatePresence (update_presence_data dataPackage)
 Updates the bot's current activity status, to be viewed by others in the same server as the bot. More...
 
void updateVoiceStatus (update_voice_state_data dataPackage)
 Updates the bot's current voice-status. joins/leaves a channel, and/or self deafens/mutes. More...
 

Additional Inherited Members

- Public Data Members inherited from discord_core_api::user_data
uint64_t accentColor {}
 The user's banner color encoded as an integer representation of hexadecimal color code.
 
jsonifier::string avatar {}
 The user's avatar hash.
 
jsonifier::string avatarDecoration {}
 The user's avatar decoration hash.
 
jsonifier::string banner {}
 The user's banner hash.
 
bool bot {}
 Whether the user belongs to an oauth2 application.
 
jsonifier::string discriminator {}
 The user's discord-tag.
 
jsonifier::string email {}
 The user's email.
 
user_flags flags {}
 The flags on a user's account.
 
jsonifier::string globalName {}
 The user's display name, if it is set. for bots, this is the application name.
 
snowflake id {}
 The user's id.
 
jsonifier::string locale {}
 The user's chosen language option.
 
bool mfaEnabled {}
 Whether the user has two-factor enabled on their account.
 
int32_t premiumType {}
 The type of nitro subscription on a user's account.
 
int32_t publicFlags {}
 The public flags on a user's account.
 
bool system {}
 Whether the user is an official discord system user (part of the urgent message system).
 
jsonifier::string userName {}
 The user's username, not unique across the platform.
 
bool verified {}
 Whether the email on this account has been verified.
 

Member Function Documentation

◆ updatePresence()

void discord_core_api::bot_user::updatePresence ( update_presence_data  dataPackage)
Parameters
dataPackagethe new presence data.

Definition at line 241 of file UserEntities.cpp.

◆ updateVoiceStatus()

void discord_core_api::bot_user::updateVoiceStatus ( update_voice_state_data  dataPackage)
Parameters
dataPackagethe new voice_state_data.

Definition at line 201 of file UserEntities.cpp.

Here is the caller graph for this function:

The documentation for this class was generated from the following files: