Class DiscordSelectOptionData
Represents a discord Select Option Structure API model. Docs: https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Color_Chan.Discord.Core.Common.API.DataModels.Select
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordSelectOptionData : IEquatable<DiscordSelectOptionData>
Properties
| Improve this Doc View SourceDefault
Will render this option as selected by default.
Declaration
[JsonPropertyName("default")]
public bool? Default { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Boolean> |
Description
The user-facing name of the option, max 100 characters.
Declaration
[JsonPropertyName("description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
String |
Emoji
The emoji used. Containing the id, name, and animated.
Declaration
[JsonPropertyName("emoji")]
public DiscordEmojiData Emoji { get; set; }
Property Value
Type | Description |
---|---|
DiscordEmojiData |
Label
The user-facing name of the option, max 100 characters.
Declaration
[JsonPropertyName("label")]
public string Label { get; set; }
Property Value
Type | Description |
---|---|
String |
Value
The dev-define value of the option, max 100 characters.
Declaration
[JsonPropertyName("value")]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
String |