DiscordCoreClient - The main class for this library.
More...
#include <DiscordCoreClient.hpp>
◆ DiscordCoreClient()
◆ getBotUser()
BotUser DiscordCoreAPI::DiscordCoreClient::getBotUser |
( |
| ) |
|
|
static |
◆ getCommandController()
◆ getConfigManager()
ConfigManager & DiscordCoreAPI::DiscordCoreClient::getConfigManager |
( |
| ) |
|
◆ getEventManager()
EventManager & DiscordCoreAPI::DiscordCoreClient::getEventManager |
( |
| ) |
|
◆ getTotalUpTime()
Milliseconds DiscordCoreAPI::DiscordCoreClient::getTotalUpTime |
( |
| ) |
|
- Returns
- Milliseconds A count, in milliseconds, since the bot has come online.
Definition at line 191 of file DiscordCoreClient.cpp.
◆ registerFunction()
void DiscordCoreAPI::DiscordCoreClient::registerFunction |
( |
const std::vector< std::string > & |
functionNames, |
|
|
std::unique_ptr< BaseFunction > |
baseFunction, |
|
|
CreateApplicationCommandData |
commandData, |
|
|
bool |
alwaysRegister = false |
|
) |
| |
- Parameters
-
functionNames | A vector containing the possible names for activating this command/function. |
baseFunction | A unique_ptr to the command to be registered. |
commandData | A CreateApplicationCommandData structure describing the current function. |
alwaysRegister | Whether or not it gets registered every time the bot boots up, or only when it's missing from the bot's list of registered commands. |
Definition at line 172 of file DiscordCoreClient.cpp.
The documentation for this class was generated from the following files: