![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
For creating a single global ApplicationCommand. More...
#include <ApplicationCommandEntities.hpp>
Additional Inherited Members | |
![]() | |
std::string | getCreatedAtTimestamp (TimeFormat timeFormat) |
Converts the snowflake-id into a time and date stamp. | |
![]() | |
Snowflake | applicationId {} |
The current application id. | |
Permissions | defaultMemberPermissions {} |
Set of permissions represented as a bit set all. | |
std::string | description {} |
A description of the current ApplicationCommand. | |
std::unordered_map< std::string, std::string > | descriptionLocalizations {} |
Dictionary with keys in available locales. | |
bool | dmPermission {} |
Indicates whether the command is available in DMs with the app, only for globally - scoped commands. | |
Snowflake | guildId {} |
(Where applicable) a Guild id for which guild to assign this ApplicationCommand to. | |
std::string | name {} |
Name of the current ApplicationCommand. | |
std::unordered_map< std::string, std::string > | nameLocalizations {} |
Dictionary with keys in available locales. | |
std::vector< ApplicationCommandOptionData > | options {} |
A vector of possible options for the current ApplicationCommand. | |
ApplicationCommandType | type {} |
The type of ApplicationCommand. | |
std::string | version {} |
An autoincremented version. | |
![]() | |
Snowflake | id {} |