SleepyDiscord::Interaction
Inherits from SleepyDiscord::IdentifiableDiscordObject< Interaction >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< Interaction >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< Interaction >
Name | |
---|---|
IdentifiableDiscordObject() =default | |
IdentifiableDiscordObject(Snowflake< Derived > id) | |
operator Snowflake< Derived > &() | |
bool | empty() const |
void | merge(Derived & changes) |
template <class DiscordObject > bool | operator==(const Snowflake< DiscordObject > & right) const |
template <class DiscordObject > bool | operator!=(const Snowflake< DiscordObject > & right) const |
bool | operator==(const Snowflake< Derived > & right) const |
bool | operator!=(const Snowflake< Derived > & right) const |
bool | operator==(const IdentifiableDiscordObject< Derived > & right) const |
bool | operator!=(const IdentifiableDiscordObject< Derived > & right) const |
const Time | getTimestamp() |
Public Attributes inherited from SleepyDiscord::IdentifiableDiscordObject< Interaction >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
using CallbackType​
using SleepyDiscord::Interaction::CallbackType = InteractionCallbackType;
using Callback​
template <typename Type >
using SleepyDiscord::Interaction::Callback = Response<InteractionCallbackHelper<Type>::getType()>;
using AutocompleteResponse​
using SleepyDiscord::Interaction::AutocompleteResponse = Callback<InteractionCallback::Autocomplete>;
using MessageResponse​
using SleepyDiscord::Interaction::MessageResponse = Response<InteractionCallbackType::ChannelMessageWithSource>;
using EditMessageResponse​
using SleepyDiscord::Interaction::EditMessageResponse = Response<InteractionCallbackType::UpdateMessage>;
using ModalResponse​
using SleepyDiscord::Interaction::ModalResponse = Response<InteractionCallbackType::Modal>;
using AppCommandCallbackData​
using SleepyDiscord::Interaction::AppCommandCallbackData = InteractionAppCommandCallbackData;
using Type​
using SleepyDiscord::Interaction::Type = InteractionType;
Public Functions Documentation​
function Interaction​
Interaction() =default
function Interaction​
Interaction(
json::Value & json
)
function Interaction​
inline Interaction(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< 1 > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable type​
InteractionType type;
variable applicationID​
Snowflake< DiscordObject > applicationID;
variable data​
InteractionData data;
variable serverID​
Snowflake< Server > serverID;
variable channelID​
Snowflake< Channel > channelID;
variable member​
ServerMember member;
variable user​
User user;
variable token​
std::string token;
variable version​
int version = 1;
variable message​
Message message;
Updated on 13 April 2022 at 18:39:59 UTC