Search Results for

    Show / Hide Table of Contents

    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

    Inheritance
    Object
    DiscordInteractionOptionData
    Implements
    IEquatable<DiscordInteractionOptionData>
    Inherited Members
    System.Object.Equals(System.Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Object.ToString()
    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 Source

    JsonValue

    The value of the option.

    Declaration
    [JsonPropertyName("value")]
    public JsonElement? JsonValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Text.Json.JsonElement>
    | Improve this Doc View Source

    Name

    The name of the parameter.

    Declaration
    [JsonPropertyName("name")]
    public string Name { get; set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    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>
    | Improve this Doc View Source

    Type

    Value of application command option type.

    Declaration
    [JsonPropertyName("type")]
    public DiscordApplicationCommandOptionType Type { get; set; }
    Property Value
    Type Description
    DiscordApplicationCommandOptionType

    Implements

    System.IEquatable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX