SleepyDiscord::Button
Inherits from SleepyDiscord::ComponentTemp< Button >, SleepyDiscord::BaseComponent, SleepyDiscord::DiscordObject
inherited members​
Public Functions inherited from SleepyDiscord::ComponentTemp< Button >
Name | |
---|---|
ComponentTemp() | |
~ComponentTemp() =default | |
operator json::Value() | |
operator RawComponent() | |
JSONStructStart | std::make_tuple(json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD ) |
Public Types inherited from SleepyDiscord::BaseComponent
Name | |
---|---|
using ComponentType | Type |
Public Functions inherited from SleepyDiscord::BaseComponent
Name | |
---|---|
BaseComponent() =deleted | |
BaseComponent(Type _type) | |
~BaseComponent() =default | |
const ComponentType | getType() const |
Protected Attributes inherited from SleepyDiscord::BaseComponent
Name | |
---|---|
Type | type |
Public Functions Documentation​
function Button​
Button() =default
function ~Button​
~Button() =default
function Button​
Button(
const json::Value & json
)
function Button​
inline Button(
const nonstd::string_view & json
)
function std::tuple_cat​
JSONStructStart std::tuple_cat(
ComponentTemp< Button >::JSONStruct ,
std::make_tuple(json::pair< json::EnumTypeHelper >(&Button::style, "style", json::REQUIRIED_FIELD), json::pair(&Button::label, "label", json::OPTIONAL_FIELD), json::pair(&Button::emoji, "emoji", json::OPTIONAL_FIELD), json::pair(&Button::customID, "custom_id", json::OPTIONAL_FIELD), json::pair(&Button::url, "url", json::OPTIONAL_FIELD), json::pair(&Button::disabled, "disabled", json::OPTIONAL_FIELD))
)
Public Attributes Documentation​
variable componentType​
static const ComponentType componentType = ComponentType::Button;
variable style​
ButtonStyle style;
variable label​
std::string label;
variable emoji​
Emoji emoji;
variable customID​
std::string customID;
variable url​
std::string url;
variable disabled​
bool disabled = false;
Updated on 13 April 2022 at 18:39:59 UTC