Constructor ChoiceAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
ChoiceAttribute(string, string)
Adds a choice to the slash command option.
public ChoiceAttribute(string name, string value)
Parameters
name
stringThe name of the choice.
value
stringThe value of the choice.
ChoiceAttribute(string, long)
Adds a choice to the slash command option.
public ChoiceAttribute(string name, long value)
Parameters
name
stringThe name of the choice.
value
longThe value of the choice.
ChoiceAttribute(string, double)
Adds a choice to the slash command option.
public ChoiceAttribute(string name, double value)
Parameters
name
stringThe name of the choice.
value
doubleThe value of the choice.