Search Results for

    Show / Hide Table of Contents

    Interface IDiscordInteractionOption

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

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

    Properties

    | Improve this Doc View Source

    Name

    The name of the parameter.

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

    SubOptions

    Present if this option is a group or subcommand.

    Declaration
    IEnumerable<IDiscordInteractionOption> SubOptions { get; set; }
    Property Value
    Type Description
    System.Collections.Generic.IEnumerable<IDiscordInteractionOption>
    | 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

    Value

    The value of the option.

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

    Methods

    | Improve this Doc View Source

    GetBoolValue()

    The System.Boolean value of Value.

    Declaration
    bool GetBoolValue()
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    GetChannelValue()

    The Id value of Value.

    Declaration
    ulong GetChannelValue()
    Returns
    Type Description
    System.UInt64
    | Improve this Doc View Source

    GetIntValue()

    The System.Int32 value of Value.

    Declaration
    int GetIntValue()
    Returns
    Type Description
    System.Int32
    | Improve this Doc View Source

    GetNumberValue()

    The System.Double value of Value.

    Declaration
    double GetNumberValue()
    Returns
    Type Description
    System.Double
    | Improve this Doc View Source

    GetRoleValue()

    The Id value of Value.

    Declaration
    ulong GetRoleValue()
    Returns
    Type Description
    System.UInt64
    | Improve this Doc View Source

    GetStringValue()

    The System.String value of Value.

    Declaration
    string GetStringValue()
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    GetUserValue()

    The Id value of Value.

    Declaration
    ulong GetUserValue()
    Returns
    Type Description
    System.UInt64
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX