![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
Data structure representing an ApplicationCommand's option. More...
#include <FoundationEntities.hpp>
Public Data Members | |
bool | autocomplete {} |
If autocomplete interactions are enabled for this STRING, INTEGER, or NUMBER type option. | |
std::vector< ChannelType > | channelTypes {} |
Set when the ApplicationCommand option type is set to Channel. | |
std::vector< ApplicationCommandOptionChoiceData > | choices {} |
A vector of possible choices for the current ApplicationCommand option. | |
std::string | description {} |
A description of the current ApplicationCommand option. | |
std::unordered_map< std::string, std::string > | descriptionLocalizations {} |
Dictionary for the description localizations field. | |
int32_t | maxValue {} |
If the option is an INTEGER or NUMBER type, the maximum value permitted. | |
int32_t | minValue {} |
If the option is an INTEGER or NUMBER type, the minimum value permitted. | |
std::string | name {} |
Name of the current ApplicationCommand option. | |
std::unordered_map< std::string, std::string > | nameLocalizations {} |
Dictionary for the name localizations field. | |
std::vector< ApplicationCommandOptionData > | options {} |
A vector of possible options for the current ApplicationCommand option. | |
bool | required {} |
If the parameter is required or optional– default false. | |
ApplicationCommandOptionType | type {} |
The type of command option. | |