Skip to main content

DiscordApplicationCommandOptionChoice

@discordeno/botDocs


Documentation / @discordeno/bot / DiscordApplicationCommandOptionChoice

Interface: DiscordApplicationCommandOptionChoice

https://discord.com/developers/docs/interactions/application-commands#application-command-permissions-object

Properties

name

name: string

1-100 character choice name

Defined in

packages/types/dist/types/discord.d.ts:2586


name_localizations?

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

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

Defined in

packages/types/dist/types/discord.d.ts:2588


value

value: string | number

Value for the choice, up to 100 characters if string

Defined in

packages/types/dist/types/discord.d.ts:2590