SleepyDiscord::AppCommand::Option
Inherits from SleepyDiscord::DiscordObject
Public Types Documentation​
enum Type​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
SUB_COMMAND | 1 | |
SUB_COMMAND_GROUP | 2 | |
STRING | 3 | |
INTEGER | 4 | |
BOOLEAN | 5 | |
USER | 6 | |
CHANNEL | 7 | |
ROLE | 8 | |
MENTIONABLE | 9 | |
NUMBER | 10 |
enum Default​
Enumerator | Value | Description |
---|---|---|
True | true | |
False | false | |
Undefined | -1 |
Public Functions Documentation​
function Option​
Option() =default
function Option​
Option(
json::Value & json
)
function Option​
inline Option(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair< json::EnumTypeHelper > &::::, "", ::REQUIRIED_FIELD ,
json::pair &::::, "", ::REQUIRIED_FIELD ,
json::pair &::::, "", ::OPTIONAL_FIELD ,
json::pair &::::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::::, "", ::OPTIONAL_FIELD ,
json::pair &::::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable type​
Type type;
variable name​
std::string name;
variable description​
std::string description;
variable isDefault​
Default isDefault = Default::Undefined;
variable isRequired​
bool isRequired = false;
variable choices​
std::vector< Choice > choices;
variable options​
std::vector< Option > options;
variable channelTypes​
std::vector< Channel::ChannelType > channelTypes;
variable minValue​
double minValue = std::numeric_limits<double>::quiet_NaN();
variable maxValue​
double maxValue = std::numeric_limits<double>::quiet_NaN();
variable autocomplete​
bool autocomplete = false;
Updated on 13 April 2022 at 18:39:59 UTC