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

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

#include <FoundationEntities.hpp>

Public Data Members

bool autocomplete {}
 If autocomplete interactions are enabled for this string, integer, or number type option.
 
jsonifier::vector< channel_typechannelTypes {}
 Set when the application_command_data option type is set to channel_data.
 
jsonifier::vector< application_command_option_choice_datachoices {}
 A vector of possible choices for the current application_command_data option.
 
jsonifier::string description {}
 A description of the current application_command_data option.
 
unordered_map< jsonifier::string, jsonifier::string > descriptionLocalizations {}
 Dictionary for the description localizations field.
 
int64_t maxValue { std::numeric_limits<int64_t>::min() }
 If the option is an integer or number type, the maximum value permitted.
 
int64_t minValue { std::numeric_limits<int64_t>::max() }
 If the option is an integer or number type, the minimum value permitted.
 
jsonifier::string name {}
 Name of the current application_command_data option.
 
unordered_map< jsonifier::string, jsonifier::string > nameLocalizations {}
 Dictionary for the name localizations field.
 
jsonifier::vector< application_command_option_dataoptions {}
 A vector of possible options for the current application_command_data option.
 
bool required {}
 If the parameter is required or optional– default false.
 
application_command_option_type type {}
 The type of command option.
 

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