Table of Contents

Class ChoiceAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

Adds a choice for this slash command option

[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = true)]
public class ChoiceAttribute : Attribute
Inheritance
ChoiceAttribute
Inherited Members

Constructors

ChoiceAttribute(string, double)

Adds a choice to the slash command option

ChoiceAttribute(string, int)

Adds a choice to the slash command option

ChoiceAttribute(string, long)

Adds a choice to the slash command option

ChoiceAttribute(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