SleepyDiscord::InteractionData::Option
Inherits from SleepyDiscord::DiscordObject
Public Functions Documentation​
function Option​
Option() =default
function Option​
Option(
json::Value & json
)
function Option​
inline Option(
const nonstd::string_view & json
)
function get​
template <class Type >
inline Type get()
function get​
template <class Type >
inline bool get(
Type & target
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::::, "", ::OPTIONAL_FIELD ,
json::pair< json::EnumTypeHelper > &::::, "", ::OPTIONAL_FIELD ,
json::pair &::::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::::, "", ::OPTIONAL_FIELD ,
json::pair &::::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable name​
std::string name;
variable type​
AppCommand::Option::Type type = AppCommand::Option::Type::NONE;
variable value​
json::Value value;
variable options​
std::vector< Option > options;
variable focused​
bool focused = false;
Updated on 13 April 2022 at 18:39:59 UTC