Class DiscordInteractionOptionData
Represents a discord Application Command Interaction Data Option Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-interaction-data-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.Interaction
Assembly: Color-Chan.Discord.Core.dll
Syntax
public class DiscordInteractionOptionData : IEquatable<DiscordInteractionOptionData>
Properties
| Improve this Doc View SourceJsonValue
The value of the option.
Declaration
[JsonPropertyName("value")]
public JsonElement? JsonValue { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Text.Json.JsonElement> |
Name
The name of the parameter.
Declaration
[JsonPropertyName("name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
String |
SubOptions
Present if this option is a group or subcommand.
Declaration
[JsonPropertyName("options")]
public IEnumerable<DiscordInteractionOptionData> SubOptions { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<DiscordInteractionOptionData> |
Type
Value of application command option type.
Declaration
[JsonPropertyName("type")]
public DiscordApplicationCommandOptionType Type { get; set; }
Property Value
Type | Description |
---|---|
DiscordApplicationCommandOptionType |