Skip to main content

DiscordApplicationCommandOptionChoice

@discordeno/bot


Documentation / @discordeno/bot / DiscordApplicationCommandOptionChoice

Interface: DiscordApplicationCommandOptionChoice

Defined in: packages/types/dist/types/discord.d.ts:2587

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

Properties

name

name: string

Defined in: packages/types/dist/types/discord.d.ts:2589

1-100 character choice name


name_localizations?

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

Defined in: packages/types/dist/types/discord.d.ts:2591

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


value

value: string | number

Defined in: packages/types/dist/types/discord.d.ts:2593

Value for the choice, up to 100 characters if string