Table of Contents

Class ChoiceAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

Adds a choice for this slash command option.

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

Constructors

ChoiceAttribute(string, double)

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.