![]() |
DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
|
Represents a single Message-component. More...
#include <FoundationEntities.hpp>
Public Data Members | |
std::vector< ChannelType > | channelTypes {} |
Array of channel types List of channel types to include in the channel select component (type 8). | |
std::string | customId {} |
A developer-defined identifier for the component, max 100 characters. | |
bool | disabled {} |
Whether the component is disabled, default false. | |
EmojiData | emoji {} |
Emoji name, id, and animated. | |
std::string | label {} |
The label for this component. | |
int32_t | maxLength {} |
The maximum input length for a text input. | |
int32_t | maxValues {} |
The maximum number of items that can be chosen; default 1, max 25. | |
int32_t | minLength {} |
The minimum input length for a text input. | |
int32_t | minValues {} |
The minimum number of items that must be chosen; default 1, min 0, max 25. | |
std::vector< SelectOptionData > | options {} |
Aray of select options the choices in the select, max 25. | |
std::string | placeholder {} |
Custom placeholder text if nothing is selected, max 100 characters. | |
bool | required {} |
Whether this component is required to be filled. | |
int32_t | style {} |
One of ButtonStyle, or TextInputStyle. | |
std::string | title {} |
Url, for url types. | |
ComponentType | type {} |
Integer component type. | |
std::string | url {} |
Url, for url types. | |
std::string | value {} |
A pre-filled value for this component. | |