Skip to main content

SleepyDiscord::TextInputs

Inherits from SleepyDiscord::ComponentTemp< TextInputs >, SleepyDiscord::BaseComponent, SleepyDiscord::DiscordObject

inherited members​

Public Functions inherited from SleepyDiscord::ComponentTemp< TextInputs >

Name
ComponentTemp()
~ComponentTemp() =default
operator json::Value()
operator RawComponent()
JSONStructStartstd::make_tuple(json::pair< json::EnumTypeHelper > &::, "", ::REQUIRIED_FIELD )

Public Types inherited from SleepyDiscord::BaseComponent

Name
using ComponentTypeType

Public Functions inherited from SleepyDiscord::BaseComponent

Name
BaseComponent() =deleted
BaseComponent(Type _type)
~BaseComponent() =default
const ComponentTypegetType() const

Protected Attributes inherited from SleepyDiscord::BaseComponent

Name
Typetype

Public Types Documentation​

using Style​

using SleepyDiscord::TextInputs::Style =  TextInputStyle;

Public Functions Documentation​

function TextInputs​

TextInputs() =default

function ~TextInputs​

~TextInputs() =default

function TextInputs​

TextInputs(
const json::Value & json
)

function TextInputs​

inline TextInputs(
const nonstd::string_view & json
)

function std::tuple_cat​

JSONStructStart std::tuple_cat(
ComponentTemp< TextInputs >::JSONStruct ,
std::make_tuple(json::pair(&TextInputs::customID, "custom_id", json::REQUIRIED_FIELD), json::pair< json::EnumTypeHelper >(&TextInputs::style, "style", json::OPTIONAL_FIELD), json::pair(&TextInputs::label, "label", json::OPTIONAL_FIELD), json::pair< -1 >(&TextInputs::minLength, "min_length", json::OPTIONAL_FIELD), json::pair< -1 >(&TextInputs::maxLength, "max_length", json::OPTIONAL_FIELD), json::pair(&TextInputs::required, "required", json::OPTIONAL_FIELD), json::pair(&TextInputs::value, "value", json::OPTIONAL_FIELD), json::pair(&TextInputs::placeholder, "placeholder", json::OPTIONAL_FIELD))
)

Public Attributes Documentation​

variable componentType​

static const ComponentType componentType = ComponentType::TextInputs;

variable customID​

std::string customID;

variable style​

TextInputStyle style;

variable label​

std::string label;

variable minLength​

int minLength = -1;

variable maxLength​

int maxLength = -1;

variable required​

bool required = false;

variable value​

std::string value;

variable placeholder​

std::string placeholder;

Updated on 13 April 2022 at 18:39:59 UTC