SleepyDiscord::SelectMenu
Inherits from SleepyDiscord::ComponentTemp< SelectMenu >, SleepyDiscord::BaseComponent, SleepyDiscord::DiscordObject
inherited members​
Public Functions inherited from SleepyDiscord::ComponentTemp< SelectMenu >
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 SelectMenu​
SelectMenu() =default
function ~SelectMenu​
~SelectMenu() =default
function SelectMenu​
SelectMenu(
const json::Value & json
)
function SelectMenu​
inline SelectMenu(
const nonstd::string_view & json
)
function std::tuple_cat​
JSONStructStart std::tuple_cat(
ComponentTemp< SelectMenu >::JSONStruct ,
std::make_tuple(json::pair(&SelectMenu::customID, "custom_id", json::REQUIRIED_FIELD), json::pair< json::ContainerTypeHelper >(&SelectMenu::options, "options", json::REQUIRIED_FIELD), json::pair(&SelectMenu::placeholder, "placeholder", json::OPTIONAL_FIELD), json::pair< 1 >(&SelectMenu::minValues, "min_values", json::OPTIONAL_FIELD), json::pair< 1 >(&SelectMenu::maxValues, "max_values", json::OPTIONAL_FIELD), json::pair(&SelectMenu::disabled, "disabled", json::OPTIONAL_FIELD))
)
Public Attributes Documentation​
variable componentType​
static const ComponentType componentType = ComponentType::SelectMenu;
variable customID​
std::string customID;
variable options​
std::vector< Option > options;
variable placeholder​
std::string placeholder;
variable minValues​
int minValues = 1;
variable maxValues​
int maxValues = 1;
variable disabled​
bool disabled = false;
Updated on 13 April 2022 at 18:39:59 UTC