Search Results for

    Show / Hide Table of Contents

    Class DiscordApplicationCommandOptionData

    Represents a discord Application Command Option Structure API model. Docs: https://discord.com/developers/docs/interactions/application-commands#application-command-object-application-command-option-structure

    Inheritance
    Object
    DiscordApplicationCommandOptionData
    Implements
    IEquatable<DiscordApplicationCommandOptionData>
    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.Application
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public class DiscordApplicationCommandOptionData : IEquatable<DiscordApplicationCommandOptionData>

    Properties

    | Improve this Doc View Source

    Autocomplete

    Enable autocomplete interactions for this option.

    Declaration
    [JsonPropertyName("autocomplete")]
    public bool? Autocomplete { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    ChanelTypes

    If the option is a channel type, the channels shown will be restricted to these types.

    Declaration
    [JsonPropertyName("channel_types")]
    public IEnumerable<DiscordChannelType> ChanelTypes { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordChannelType>
    | Improve this Doc View Source

    Choices

    Choices for string and int types for the user to pick from.

    Declaration
    [JsonPropertyName("choices")]
    public IEnumerable<DiscordApplicationCommandOptionChoiceData> Choices { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordApplicationCommandOptionChoiceData>
    | Improve this Doc View Source

    Description

    1-100 character description

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

    IsRequired

    If the parameter is required or optional--default false.

    Declaration
    [JsonPropertyName("required")]
    public bool? IsRequired { get; set; }
    Property Value
    Type Description
    System.Nullable<Boolean>
    | Improve this Doc View Source

    MaxValue

    If the option is an INTEGER or NUMBER type, the maximum value permitted.

    Declaration
    [JsonPropertyName("max_value")]
    public int? MaxValue { get; set; }
    Property Value
    Type Description
    System.Nullable<Int32>
    | Improve this Doc View Source

    MinValue

    If the option is an INTEGER or NUMBER type, the minimum value permitted.

    Declaration
    [JsonPropertyName("min_value")]
    public int? MinValue { get; set; }
    Property Value
    Type Description
    System.Nullable<Int32>
    | Improve this Doc View Source

    Name

    1-32 lowercase character name matching ^[\w-]{1,32}$.

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

    SubOptions

    If the option is a subcommand or subcommand group type, this nested options will be the parameters.

    Declaration
    [JsonPropertyName("options")]
    public IEnumerable<DiscordApplicationCommandOptionData> SubOptions { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordApplicationCommandOptionData>
    | 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