DiscordSelectMenuComponent
@discordeno/bot • Docs
Documentation / @discordeno/bot / DiscordSelectMenuComponent
Interface: DiscordSelectMenuComponent
https://discord.com/developers/docs/interactions/message-components#select-menu-object
Properties
channel_types?
optional
channel_types:ChannelTypes
[]
List of channel types to include in a channel select menu options list
Defined in
packages/types/dist/types/discord.d.ts:1629
custom_id
custom_id:
string
A custom identifier for this component. Maximum 100 characters.
Defined in
packages/types/dist/types/discord.d.ts:1614
default_values?
optional
default_values:DiscordSelectMenuDefaultValue
[]
List of default values for auto-populated select menu components
Remarks
The number of default values must be in the range defined by min_values and max_values
Defined in
packages/types/dist/types/discord.d.ts:1627
disabled?
optional
disabled:boolean
Whether select menu is disabled
Default
false
Defined in
packages/types/dist/types/discord.d.ts:1637
max_values?
optional
max_values:number
The maximum number of items that can be selected. Default 1. Between 1-25.
Defined in
packages/types/dist/types/discord.d.ts:1620
min_values?
optional
min_values:number
The minimum number of items that must be selected. Default 1. Between 1-25.
Defined in
packages/types/dist/types/discord.d.ts:1618
options?
optional
options:DiscordSelectOption
[]
The choices! Maximum of 25 items.
Defined in
packages/types/dist/types/discord.d.ts:1631
placeholder?
optional
placeholder:string
A custom placeholder text if nothing is selected. Maximum 150 characters.
Defined in
packages/types/dist/types/discord.d.ts:1616
type
type:
SelectMenu
|SelectMenuUsers
|SelectMenuRoles
|SelectMenuUsersAndRoles
|SelectMenuChannels
Defined in
packages/types/dist/types/discord.d.ts:1612