DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::CreateApplicationCommandData Struct Reference

For creating an application command. More...

#include <ApplicationCommandEntities.hpp>

Inheritance diagram for DiscordCoreAPI::CreateApplicationCommandData:
[legend]

Public Data Members

Snowflake applicationId {}
 Application id.
 
Permissions defaultMemberPermissions {}
 Set of permissions represented as a bit set. only for globally - scoped commands.
 
std::string description {}
 A description of the command.
 
std::unordered_map< std::string, std::string > descriptionLocalizations {}
 Dictionary with keys in available locales Localization dictionary for the description field.
 
bool dmPermission { false }
 Indicates whether the command is available in DMs with the app,.
 
Snowflake guildId {}
 Set this to a guild id to create a command specific to that guild.
 
std::string name {}
 A name for the new command.
 
std::unordered_map< std::string, std::string > nameLocalizations {}
 Dictionary with keys in available locales Localization dictionary for the name field.
 
std::vector< ApplicationCommandOptionDataoptions {}
 The options for the ApplicationCommand.
 
ApplicationCommandType type {}
 The type of ApplicationCommand.
 

The documentation for this struct was generated from the following file: