Table of Contents

Constructor ChoiceAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.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, int)

Adds a choice to the slash command option

public ChoiceAttribute(string name, int value)

Parameters

name string

The name of the choice.

value int

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.