Class SocketApplicationCommandChoice
Represents a choice for a SocketApplicationCommandOption.
Implements
Namespace: Discord.WebSocket
Assembly: Discord.Net.WebSocket.dll
Syntax
public class SocketApplicationCommandChoice : object, IApplicationCommandOptionChoice
Properties
| Improve this Doc View SourceName
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
NameLocalizations
Gets the localization dictionary for the name field of this command option choice.
Declaration
public IReadOnlyDictionary<string, string> NameLocalizations { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<String, String> |
NameLocalized
Gets the localized name of this command option choice.
Declaration
public string NameLocalized { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Only returned when the withLocalizations
query parameter is set to false when requesting the command.
Value
Declaration
public object Value { get; }
Property Value
Type | Description |
---|---|
Object |