Skip to main content

SelectOption

Documentation


Documentation / @discordeno/types / SelectOption

Interface: SelectOption

Defined in: discordeno/components.ts:138

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

Properties

default?

optional default?: boolean

Defined in: discordeno/components.ts:156

Will render this option as already-selected by default.


description?

optional description?: string

Defined in: discordeno/components.ts:144

An additional description of the option. Maximum 50 characters.


emoji?

optional emoji?: object

Defined in: discordeno/components.ts:147

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

animated?

optional animated?: boolean

Whether this emoji is animated

id?

optional id?: BigString

Emoji id

name?

optional name?: string

Emoji name


label

label: string

Defined in: discordeno/components.ts:140

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


value

value: string

Defined in: discordeno/components.ts:142

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