Search Results for

    Show / Hide Table of Contents

    Interface IDiscordApplicationCommandOption

    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

    Namespace: Color_Chan.Discord.Core.Common.Models.Application
    Assembly: Color-Chan.Discord.Core.dll
    Syntax
    public interface IDiscordApplicationCommandOption

    Properties

    | Improve this Doc View Source

    Autocomplete

    Enable autocomplete interactions for this option.

    Declaration
    bool? Autocomplete { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    ChanelTypes

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

    Declaration
    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
    IEnumerable<IDiscordApplicationCommandOptionChoice> Choices { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOptionChoice>
    | Improve this Doc View Source

    Description

    1-100 character description

    Declaration
    string Description { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    IsRequired

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

    Declaration
    bool? IsRequired { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Boolean>
    | Improve this Doc View Source

    MaxValue

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

    Declaration
    int? MaxValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    | Improve this Doc View Source

    MinValue

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

    Declaration
    int? MinValue { get; set; }
    Property Value
    Type Description
    System.Nullable<System.Int32>
    | Improve this Doc View Source

    Name

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

    Declaration
    string Name { get; set; }
    Property Value
    Type Description
    System.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
    IEnumerable<IDiscordApplicationCommandOption> SubOptions { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordApplicationCommandOption>
    | Improve this Doc View Source

    Type

    value of application command option type.

    Declaration
    DiscordApplicationCommandOptionType Type { get; set; }
    Property Value
    Type Description
    DiscordApplicationCommandOptionType
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX