Skip to main content

DiscordSelectOption

Documentation


Documentation / @discordeno/types / DiscordSelectOption

Interface: DiscordSelectOption

Defined in: discord/components.ts:226

https://docs.discord.com/developers/components/reference#string-select-select-option-structure

Properties

default?

optional default?: boolean

Defined in: discord/components.ts:236

Will render this option as already-selected by default.


description?

optional description?: string

Defined in: discord/components.ts:232

An additional description of the option. Maximum 50 characters.


emoji?

optional emoji?: Partial<Pick<DiscordEmoji, "id" | "name" | "animated">>

Defined in: discord/components.ts:234

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


label

label: string

Defined in: discord/components.ts:228

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


value

value: string

Defined in: discord/components.ts:230

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