DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
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:
[legend]

Public Member Functions

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

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.
 
int32_t 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 {}
 

Member Function Documentation

◆ updatePresence()

void DiscordCoreAPI::BotUser::updatePresence ( DiscordCoreInternal::UpdatePresenceData dataPackage)

Updates the bot's current activity status, to be viewed by others in the same server as the bot.

Definition at line 130 of file UserEntities.cpp.

◆ updateVoiceStatus()

void DiscordCoreAPI::BotUser::updateVoiceStatus ( UpdateVoiceStateData datdataPackageaPackage)

Updates the bot's current voice-status. Joins/leaves a Channel, and/or self deafens/mutes.

Definition at line 117 of file UserEntities.cpp.


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