SleepyDiscord::InteractionData
Inherits from SleepyDiscord::DiscordObject
Public Functions Documentation​
function InteractionData​
InteractionData() =default
function InteractionData​
InteractionData(
json::Value & json
)
function InteractionData​
inline InteractionData(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable ID​
Snowflake< AppCommand > ID;
variable name​
std::string name;
variable type​
AppCommand::Type type = AppCommand::Type::NONE;
variable resolved​
ResolvedData resolved;
variable options​
std::vector< Option > options;
variable customID​
std::string customID;
variable componentType​
ComponentType componentType;
variable values​
std::vector< std::string > values;
variable targetID​
Snowflake< DiscordObject > targetID;
variable components​
std::vector< std::shared_ptr< BaseComponent > > components;
Updated on 13 April 2022 at 18:39:59 UTC