Skip to main content

SelectMenuComponent

@discordeno/bot


Documentation / @discordeno/bot / SelectMenuComponent

Interface: SelectMenuComponent

Defined in: packages/types/dist/types/discordeno.d.ts:79

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

Properties

customId

customId: string

Defined in: packages/types/dist/types/discordeno.d.ts:83

A custom identifier for this component. Maximum 100 characters.


disabled?

optional disabled: boolean

Defined in: packages/types/dist/types/discordeno.d.ts:93

Whether or not this select is disabled


maxValues?

optional maxValues: number

Defined in: packages/types/dist/types/discordeno.d.ts:89

The maximum number of items that can be selected. Default 1. Between 1-25.


minValues?

optional minValues: number

Defined in: packages/types/dist/types/discordeno.d.ts:87

The minimum number of items that must be selected. Default 1. Between 1-25.


options

options: SelectOption[]

Defined in: packages/types/dist/types/discordeno.d.ts:91

The choices! Maximum of 25 items.


placeholder?

optional placeholder: string

Defined in: packages/types/dist/types/discordeno.d.ts:85

A custom placeholder text if nothing is selected. Maximum 150 characters.


type

type: SelectMenu

Defined in: packages/types/dist/types/discordeno.d.ts:81

SelectMenu Component is of type 3