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
Inheritance
System.Object
DiscordSelectOptionData
Implements
System.IEquatable<DiscordSelectOptionData>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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<System.Boolean> |
Description
The user-facing name of the option, max 100 characters.
Declaration
[JsonPropertyName("description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.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 |
---|---|
System.String |
Value
The dev-define value of the option, max 100 characters.
Declaration
[JsonPropertyName("value")]
public string Value { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Implements
System.IEquatable<T>