Skip to main content

DiscordApplicationCommandOptionChoice

Documentation


Documentation / @discordeno/types / DiscordApplicationCommandOptionChoice

Interface: DiscordApplicationCommandOptionChoice

Defined in: discord/interactions.ts:481

https://docs.discord.com/developers/interactions/application-commands#application-command-object-application-command-option-choice-structure

Properties

name

name: string

Defined in: discord/interactions.ts:483

1-100 character choice name


name_localizations?

optional name_localizations?: Partial<Record<Locales, string>> | null

Defined in: discord/interactions.ts:485

Localization object for the name field. Values follow the same restrictions as name


value

value: string | number

Defined in: discord/interactions.ts:487

Value for the choice, up to 100 characters if string