Table of Contents

Class ApplicationCommandOptionChoiceProperties

Namespace
Discord
Assembly
Discord.Net.Core.dll

Represents a choice for a IApplicationCommandInteractionDataOption. This class is used when making new commands.

public class ApplicationCommandOptionChoiceProperties
Inheritance
ApplicationCommandOptionChoiceProperties
Inherited Members

Properties

Name

Gets or sets the name of this choice.

public string Name { get; set; }

Property Value

string

NameLocalizations

Gets or sets the localization dictionary for the name field of this choice.

public IDictionary<string, string> NameLocalizations { get; set; }

Property Value

IDictionary<string, string>

Exceptions

ArgumentException

Thrown when any of the dictionary keys is an invalid locale.

Value

Gets the value of this choice.

warning

Discord only accepts int, double/floats, and string as the input.

public object Value { get; set; }

Property Value

object