Search Results for

    Show / Hide Table of Contents

    Class DiscordInteractionDataOption

    Represents parameters for interaction commands.

    Inheritance
    System.Object
    DiscordInteractionDataOption
    Namespace: DisCatSharp.Entities
    Assembly: DisCatSharp.dll
    Syntax
    public sealed class DiscordInteractionDataOption

    Properties

    | Improve this Doc View Source

    Focused

    Whether this option is currently focused by the user. Only applicable for autocomplete option choices.

    Declaration
    public bool Focused { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Name

    Gets the name of this interaction parameter.

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

    Options

    Gets the additional parameters if this parameter is a subcommand.

    Declaration
    public IEnumerable<DiscordInteractionDataOption> Options { get; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<DiscordInteractionDataOption>
    | Improve this Doc View Source

    Type

    Gets the type of this interaction parameter.

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

    Value

    Gets the value of this interaction parameter.

    This can be cast to a langword_csharp_long, langword_csharp_bool, langword_csharp_string, langword_csharp_double or langword_csharp_ulong depending on the System.Type

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

    Extension Methods

    ReflectionUtilities.ToDictionary<T>(T)
    • Improve this Doc
    • View Source
    In This Article
    Back to top © 2021-2022 Aiko IT Systems