SleepyDiscord::AppCommand::Option::Choice
Inherits from SleepyDiscord::DiscordObject
Public Functions Documentation​
function Choice​
Choice() =default
function Choice​
Choice(
json::Value & json
)
function Choice​
inline Choice(
const nonstd::string_view & json
)
function get​
template <class Type >
inline const Type get()
function get​
template <class Type >
inline const bool get(
Type & target
)
function setCopy​
template <class Type >
inline void setCopy(
Type & val
)
function setView​
template <class Type >
inline void setView(
Type & val
)
function copy​
inline Choice copy()
function set​
template <class Type >
inline void set(
Type & val
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::::::, "", ::REQUIRIED_FIELD ,
json::pair &::::::, "", ::REQUIRIED_FIELD
)
function set​
inline void set(
decltype(nullptr)&
)
Public Attributes Documentation​
variable name​
std::string name;
variable value​
json::Value value;
Updated on 13 April 2022 at 18:39:59 UTC