DiscordCoreAPI
A Discord bot library written in C++, with custom asynchronous coroutines.
Loading...
Searching...
No Matches
DiscordCoreAPI::ComponentData Struct Reference

Represents a single Message-component. More...

#include <FoundationEntities.hpp>

Public Data Members

String customId {}
 A developer-defined identifier for the component, max 100 characters.
 
Bool disabled { false }
 Whether the component is disabled, default false.
 
EmojiData emoji {}
 Emoji name, id, and animated.
 
String label {}
 The label for this component.
 
Int32 maxLength { 0 }
 The maximum input length for a text input.
 
Int32 maxValues { 0 }
 The maximum number of items that can be chosen; default 1, max 25.
 
Int32 minLength { 0 }
 The minimum input length for a text input.
 
Int32 minValues { 0 }
 The minimum number of items that must be chosen; default 1, min 0, max 25.
 
std::vector< SelectOptionDataoptions {}
 Aray of select options the choices in the select, max 25.
 
String placeholder {}
 Custom placeholder text if nothing is selected, max 100 characters.
 
Bool required { false }
 Whether this component is required to be filled.
 
Int32 style {}
 One of ButtonStyle, or TextInputStyle.
 
String title {}
 Url, for url types.
 
ComponentType type {}
 Integer component type.
 
String url {}
 Url, for url types.
 
String value {}
 A pre-filled value for this component.
 

The documentation for this struct was generated from the following files: