Table of Contents

Class SocketApplicationCommandChoice

Namespace
Discord.WebSocket
Assembly
Discord.Net.WebSocket.dll

Represents a choice for a SocketApplicationCommandOption.

public class SocketApplicationCommandChoice : IApplicationCommandOptionChoice
Inheritance
SocketApplicationCommandChoice
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