Table of Contents

Class RestApplicationCommandChoice

Namespace
Discord.Rest
Assembly
Discord.Net.Rest.dll

Represents a Rest-based implementation of IApplicationCommandOptionChoice.

public class RestApplicationCommandChoice : IApplicationCommandOptionChoice
Inheritance
RestApplicationCommandChoice
Implements
Inherited Members

Properties

Name

Gets the choice name.

public string Name { get; }

Property Value

string

NameLocalizations

Gets the localization dictionary for the name field of this command option choice.

public IReadOnlyDictionary<string, string> NameLocalizations { get; }

Property Value

IReadOnlyDictionary<string, string>

NameLocalized

Gets the localized name of this command option choice.

public string NameLocalized { get; }

Property Value

string

Remarks

Only returned when the withLocalizations query parameter is set to false when requesting the command.

Value

Gets the value of the choice.

public object Value { get; }

Property Value

object