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

A type of User, to represent the Bot and some of its associated endpoints. More...

#include <UserEntities.hpp>

Inheritance diagram for DiscordCoreAPI::BotUser:

Public Member Functions

void updatePresence (UpdatePresenceData &dataPackage)
 Updates the bot's current activity status, to be viewed by others in the same server as the bot.
void updateVoiceStatus (UpdateVoiceStateData &datdataPackageaPackage)
 Updates the bot's current voice-status. Joins/leaves a Channel, and/or self deafens/mutes.
- Public Member Functions inherited from DiscordCoreAPI::DiscordEntity
std::string getCreatedAtTimestamp (TimeFormat timeFormat)
 Converts the snowflake-id into a time and date stamp.

Additional Inherited Members

- Public Data Members inherited from DiscordCoreAPI::User
int32_t accentColor { 0 }
 The user 's banner color encoded as an integer representation of hexadecimal color code.
IconHash banner {}
 The user's banner hash.
std::string email {}
 The user's email.
std::string locale {}
 The user' s chosen language option.
PremiumType premiumType {}
 The type of Nitro subscription on a user ' s account.
- Public Data Members inherited from DiscordCoreAPI::UserData
IconHash avatar {}
 The user's avatar hash.
StringWrapper discriminator {}
 The user's 4-digit discord-tag identify.
UserFlags flags {}
 The public flags on a user' s account.
StringWrapper userName {}
 The user's userName, not unique across the platform identify.
- Public Data Members inherited from DiscordCoreAPI::DiscordEntity
Snowflake id {}

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