![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
A type of User, to represent the Bot and some of its associated endpoints. More...
#include <UserEntities.hpp>
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. | |
![]() | |
std::string | getCreatedAtTimestamp (TimeFormat timeFormat) |
Converts the snowflake-id into a time and date stamp. | |
Additional Inherited Members | |
![]() | |
int32_t | accentColor {} |
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. | |
![]() | |
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. | |
![]() | |
Snowflake | id {} |