Class DiscordApplicationCommandOptionChoice
- Namespace
- DSharpPlus.Entities
- Assembly
- DSharpPlus.dll
Represents a choice for a DiscordApplicationCommandOption parameter.
public sealed class DiscordApplicationCommandOptionChoice
- Inheritance
-
objectDiscordApplicationCommandOptionChoice
Constructors
- DiscordApplicationCommandOptionChoice(string, double, IReadOnlyDictionary<string, string>?)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
- DiscordApplicationCommandOptionChoice(string, int, IReadOnlyDictionary<string, string>?)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
- DiscordApplicationCommandOptionChoice(string, long, IReadOnlyDictionary<string, string>?)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
- DiscordApplicationCommandOptionChoice(string, float, IReadOnlyDictionary<string, string>?)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
- DiscordApplicationCommandOptionChoice(string, string, IReadOnlyDictionary<string, string>?)
Creates a new instance of a DiscordApplicationCommandOptionChoice.
Properties
- Name
Gets the name of this choice.
- NameLocalizations
Gets the localized names for this choice.
- Value
Gets the value of this choice. This will either be a type of int / long, double or string.