Search Results for

    Show / Hide Table of Contents

    Class DiscordApplicationCommandOptionChoice

    Represents a command parameter choice for a DiscordApplicationCommandOption.

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

    Constructors

    | Improve this Doc View Source

    DiscordApplicationCommandOptionChoice(String, Object, DiscordApplicationCommandLocalization)

    Creates a new instance of a DiscordApplicationCommandOptionChoice.

    Declaration
    public DiscordApplicationCommandOptionChoice(string name, object value, DiscordApplicationCommandLocalization nameLocalizations = null)
    Parameters
    Type Name Description
    System.String name

    The name of the parameter choice.

    System.Object value

    The value of the parameter choice.

    DiscordApplicationCommandLocalization nameLocalizations

    The localizations of the parameter choice name.

    Properties

    | Improve this Doc View Source

    Name

    Gets the name of this choice parameter.

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

    NameLocalizations

    Gets the name localizations.

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

    Value

    Gets the value of this choice parameter. This will either be a type of System.Int32, System.Int64, System.Double or System.String.

    Declaration
    public object Value { get; set; }
    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