SleepyDiscord::AppCommand
Inherits from SleepyDiscord::IdentifiableDiscordObject< AppCommand >, SleepyDiscord::DiscordObject
inherited members​
Public Types inherited from SleepyDiscord::IdentifiableDiscordObject< AppCommand >
Name | |
---|---|
using IdentifiableDiscordObject< Derived > | Parent |
using Snowflake< Derived > | Identifier |
Public Functions inherited from SleepyDiscord::IdentifiableDiscordObject< AppCommand >
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< AppCommand >
Name | |
---|---|
Snowflake< Derived > | ID |
Public Types Documentation​
enum Type​
Enumerator | Value | Description |
---|---|---|
NONE | 0 | |
CHAT_INPUT | 1 | |
USER | 2 | |
MESSAGE | 3 |
using InteractionData​
using SleepyDiscord::AppCommand::InteractionData = SleepyDiscord::InteractionData;
using EmptyOptions​
using SleepyDiscord::AppCommand::EmptyOptions = std::nullptr_t;
Public Functions Documentation​
function AppCommand​
AppCommand() =default
function AppCommand​
AppCommand(
json::Value & json
)
function AppCommand​
inline AppCommand(
const nonstd::string_view & json
)
function std::make_tuple​
JSONStructStart std::make_tuple(
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair< json::EnumTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::REQUIRIED_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair< json::ContainerTypeHelper > &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD ,
json::pair &::, "", ::OPTIONAL_FIELD
)
Public Attributes Documentation​
variable type​
Type type = Type::CHAT_INPUT;
variable applicationID​
Snowflake< DiscordObject > applicationID;
variable name​
std::string name;
variable description​
std::string description;
variable options​
std::vector< Option > options;
variable serverID​
Snowflake< Server > serverID;
variable defaultPermission​
bool defaultPermission = true;
variable version​
Snowflake< DiscordObject > version;
variable emptyOptions​
static constexpr EmptyOptions emptyOptions = nullptr;
Updated on 13 April 2022 at 18:39:59 UTC