Search Results for

    Show / Hide Table of Contents

    Class RestSlashCommandDataOption

    Represents a REST-based option for a slash command.

    Inheritance
    Object
    RestSlashCommandDataOption
    Implements
    IApplicationCommandInteractionDataOption
    Namespace: Discord.Rest
    Assembly: Discord.Net.Rest.dll
    Syntax
    public class RestSlashCommandDataOption : object, IApplicationCommandInteractionDataOption

    Properties

    | 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 sub command options received for this sub command group.

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

    Type

    Gets the type of this data's option.

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

    Value

    Declaration
    public object Value { get; }
    Property Value
    Type Description
    Object

    Operators

    | Improve this Doc View Source

    Explicit(RestSlashCommandDataOption to Boolean)

    Declaration
    public static explicit operator bool (RestSlashCommandDataOption option)
    Parameters
    Type Name Description
    RestSlashCommandDataOption option
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    Explicit(RestSlashCommandDataOption to Int32)

    Declaration
    public static explicit operator int (RestSlashCommandDataOption option)
    Parameters
    Type Name Description
    RestSlashCommandDataOption option
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    Explicit(RestSlashCommandDataOption to String)

    Declaration
    public static explicit operator string (RestSlashCommandDataOption option)
    Parameters
    Type Name Description
    RestSlashCommandDataOption option
    Returns
    Type Description
    String

    Implements

    IApplicationCommandInteractionDataOption

    Theme

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