Table of Contents

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 string

The name of the choice.

value string

The value of the choice.

ChoiceAttribute(string, long)

Adds a choice to the slash command option.

public ChoiceAttribute(string name, long value)

Parameters

name string

The name of the choice.

value long

The value of the choice.

ChoiceAttribute(string, double)

Adds a choice to the slash command option.

public ChoiceAttribute(string name, double value)

Parameters

name string

The name of the choice.

value double

The value of the choice.