Table of Contents

Constructor DiscordApplicationCommandOptionChoice

Namespace
DSharpPlus.Entities
Assembly
DSharpPlus.dll

DiscordApplicationCommandOptionChoice(string, string, IReadOnlyDictionary<string, string>?)

Creates a new instance of a DiscordApplicationCommandOptionChoice.

public DiscordApplicationCommandOptionChoice(string name, string value, IReadOnlyDictionary<string, string>? nameLocalizations = null)

Parameters

name string

The name of this choice.

value string

The value of this choice.

nameLocalizations IReadOnlyDictionary<string, string>

Localized names for this choice. The keys must be appropriate locales as documented by Discord: https://discord.com/developers/docs/reference#locales.

DiscordApplicationCommandOptionChoice(string, int, IReadOnlyDictionary<string, string>?)

Creates a new instance of a DiscordApplicationCommandOptionChoice.

public DiscordApplicationCommandOptionChoice(string name, int value, IReadOnlyDictionary<string, string>? nameLocalizations = null)

Parameters

name string

The name of this choice.

value int

The value of this choice.

nameLocalizations IReadOnlyDictionary<string, string>

Localized names for this choice. The keys must be appropriate locales as documented by Discord: https://discord.com/developers/docs/reference#locales.

DiscordApplicationCommandOptionChoice(string, long, IReadOnlyDictionary<string, string>?)

Creates a new instance of a DiscordApplicationCommandOptionChoice.

public DiscordApplicationCommandOptionChoice(string name, long value, IReadOnlyDictionary<string, string>? nameLocalizations = null)

Parameters

name string

The name of this choice.

value long

The value of this choice.

nameLocalizations IReadOnlyDictionary<string, string>

Localized names for this choice. The keys must be appropriate locales as documented by Discord: https://discord.com/developers/docs/reference#locales.

DiscordApplicationCommandOptionChoice(string, double, IReadOnlyDictionary<string, string>?)

Creates a new instance of a DiscordApplicationCommandOptionChoice.

public DiscordApplicationCommandOptionChoice(string name, double value, IReadOnlyDictionary<string, string>? nameLocalizations = null)

Parameters

name string

The name of this choice.

value double

The value of this choice.

nameLocalizations IReadOnlyDictionary<string, string>

Localized names for this choice. The keys must be appropriate locales as documented by Discord: https://discord.com/developers/docs/reference#locales.

DiscordApplicationCommandOptionChoice(string, float, IReadOnlyDictionary<string, string>?)

Creates a new instance of a DiscordApplicationCommandOptionChoice.

public DiscordApplicationCommandOptionChoice(string name, float value, IReadOnlyDictionary<string, string>? nameLocalizations = null)

Parameters

name string

The name of this choice.

value float

The value of this choice.

nameLocalizations IReadOnlyDictionary<string, string>

Localized names for this choice. The keys must be appropriate locales as documented by Discord: https://discord.com/developers/docs/reference#locales.