Skip to main content

DiscordSelectOption

@discordeno/bot


Documentation / @discordeno/bot / DiscordSelectOption

Interface: DiscordSelectOption

Defined in: packages/types/dist/types/discord/interactions.d.ts:513

https://discord.com/developers/docs/interactions/message-components#select-menu-object-select-option-structure

Properties

default?

optional default: boolean

Defined in: packages/types/dist/types/discord/interactions.d.ts:530

Will render this option as already-selected by default.


description?

optional description: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:519

An additional description of the option. Maximum 50 characters.


emoji?

optional emoji: object

Defined in: packages/types/dist/types/discord/interactions.d.ts:521

The id, name, and animated properties of an emoji.

animated?

optional animated: boolean

Whether this emoji is animated

id?

optional id: string

Emoji id

name?

optional name: string

Emoji name


label

label: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:515

The user-facing name of the option. Maximum 25 characters.


value

value: string

Defined in: packages/types/dist/types/discord/interactions.d.ts:517

The dev-defined value of the option. Maximum 100 characters.