Skip to main content

SleepyDiscord::AppCommand::Option

Inherits from SleepyDiscord::DiscordObject

Public Types Documentation​

enum Type​

EnumeratorValueDescription
NONE0
SUB_COMMAND1
SUB_COMMAND_GROUP2
STRING3
INTEGER4
BOOLEAN5
USER6
CHANNEL7
ROLE8
MENTIONABLE9
NUMBER10

enum Default​

EnumeratorValueDescription
Truetrue
Falsefalse
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