Class ChoiceAttribute
- Namespace
- Dis
Cat .ApplicationSharp Commands .Attributes
- Assembly
- DisCatSharp.ApplicationCommands.dll
Adds a choice for this slash command option
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)]
public class ChoiceAttribute : Attribute
- Inheritance
-
Choice
Attribute
- Inherited Members
Constructors
- Choice
Attribute(string, double) Adds a choice to the slash command option
- Choice
Attribute(string, int) Adds a choice to the slash command option
- Choice
Attribute(string, long) Adds a choice to the slash command option
- Choice
Attribute(string, string) Adds a choice to the slash command option
Properties
- Name
Gets the name of the choice
- Value
Gets the value of the choice