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

Data structure representing an ApplicationCommand's option. More...

#include <FoundationEntities.hpp>

Public Data Members

bool autocomplete { false }
 If autocomplete interactions are enabled for this STRING, INTEGER, or NUMBER type option.
 
std::vector< ChannelTypechannelTypes {}
 Set when the ApplicationCommand option type is set to Channel.
 
std::vector< ApplicationCommandOptionChoiceDatachoices {}
 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 { 0 }
 If the option is an INTEGER or NUMBER type, the maximum value permitted.
 
int32_t minValue { 0 }
 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< ApplicationCommandOptionDataoptions {}
 A vector of possible options for the current ApplicationCommand option.
 
bool required { false }
 If the parameter is required or optional– default false.
 
ApplicationCommandOptionType type {}
 The type of command option.
 

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