Search Results for

    Show / Hide Table of Contents

    Class SocketApplicationCommandOption

    Represents an option for a SocketApplicationCommand.

    Inheritance
    Object
    SocketApplicationCommandOption
    Implements
    IApplicationCommandOption
    Namespace: Discord.WebSocket
    Assembly: Discord.Net.WebSocket.dll
    Syntax
    public class SocketApplicationCommandOption : object, IApplicationCommandOption

    Properties

    | Improve this Doc View Source

    ChannelTypes

    Gets the allowed channel types for this option.

    Declaration
    public IReadOnlyCollection<ChannelType> ChannelTypes { get; }
    Property Value
    Type Description
    IReadOnlyCollection<ChannelType>
    | Improve this Doc View Source

    Choices

    Gets a collection of choices for the user to pick from.

    Declaration
    public IReadOnlyCollection<SocketApplicationCommandChoice> Choices { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketApplicationCommandChoice>
    | Improve this Doc View Source

    Description

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

    IsAutocomplete

    Declaration
    public bool? IsAutocomplete { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    IsDefault

    Declaration
    public bool? IsDefault { get; }
    Property Value
    Type Description
    Nullable<Boolean>
    | Improve this Doc View Source

    IsRequired

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

    MaxValue

    Declaration
    public double? MaxValue { get; }
    Property Value
    Type Description
    Nullable<Double>
    | Improve this Doc View Source

    MinValue

    Declaration
    public double? MinValue { get; }
    Property Value
    Type Description
    Nullable<Double>
    | Improve this Doc View Source

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    Options

    Gets a collection of nested options.

    Declaration
    public IReadOnlyCollection<SocketApplicationCommandOption> Options { get; }
    Property Value
    Type Description
    IReadOnlyCollection<SocketApplicationCommandOption>
    | Improve this Doc View Source

    Type

    Gets the type of this IApplicationCommandOption.

    Declaration
    public ApplicationCommandOptionType Type { get; }
    Property Value
    Type Description
    ApplicationCommandOptionType

    Implements

    IApplicationCommandOption

    Theme

    • Improve this Doc
    • View Source
    In This Article
    Back to top Discord.Net (c) 2015-2022 3.7.2