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.
 
String description {}
 A description of the current ApplicationCommand option.
 
std::unordered_map< String, String > descriptionLocalizations {}
 Dictionary for the description localizations field.
 
Int32 maxValue { 0 }
 If the option is an INTEGER or NUMBER type, the maximum value permitted.
 
Int32 minValue { 0 }
 If the option is an INTEGER or NUMBER type, the minimum value permitted.
 
String name {}
 Name of the current ApplicationCommand option.
 
std::unordered_map< String, 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: