Interface IDiscordSelectOption
Represents a discord Select Option Structure API model. Docs: https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure
Namespace: Color_Chan.Discord.Core.Common.Models.Select
Assembly: Color-Chan.Discord.Core.dll
Syntax
public interface IDiscordSelectOption
Properties
| Improve this Doc View SourceDefault
Will render this option as selected by default.
Declaration
bool? Default { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Description
The user-facing name of the option, max 100 characters.
Declaration
string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Emoji
The emoji used. Containing the id, name, and animated.
Declaration
IDiscordEmoji Emoji { get; set; }
Property Value
Type | Description |
---|---|
IDiscordEmoji |
Label
The user-facing name of the option, max 100 characters.
Declaration
string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
Value
The dev-define value of the option, max 100 characters.
Declaration
string Value { get; set; }
Property Value
Type | Description |
---|---|
String |
Methods
| Improve this Doc View SourceToDataModel()
Converts the model back to a discord data model so that it can be send to discord.
Declaration
DiscordSelectOptionData ToDataModel()
Returns
Type | Description |
---|---|
DiscordSelectOptionData | The converted DiscordSelectOptionData. |