DiscordSelectMenuComponent
Documentation / @discordeno/bot / DiscordSelectMenuComponent
Interface: DiscordSelectMenuComponent
Defined in: packages/types/dist/types/discord.d.ts:1614
https://discord.com/developers/docs/interactions/message-components#select-menu-object
Properties
channel_types?
optional
channel_types:ChannelTypes
[]
Defined in: packages/types/dist/types/discord.d.ts:1632
List of channel types to include in a channel select menu options list
custom_id
custom_id:
string
Defined in: packages/types/dist/types/discord.d.ts:1617
A custom identifier for this component. Maximum 100 characters.
default_values?
optional
default_values:DiscordSelectMenuDefaultValue
[]
Defined in: packages/types/dist/types/discord.d.ts:1630
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
disabled?
optional
disabled:boolean
Defined in: packages/types/dist/types/discord.d.ts:1640
Whether select menu is disabled
Default
false
max_values?
optional
max_values:number
Defined in: packages/types/dist/types/discord.d.ts:1623
The maximum number of items that can be selected. Default 1. Between 1-25.
min_values?
optional
min_values:number
Defined in: packages/types/dist/types/discord.d.ts:1621
The minimum number of items that must be selected. Default 1. Between 1-25.
options?
optional
options:DiscordSelectOption
[]
Defined in: packages/types/dist/types/discord.d.ts:1634
The choices! Maximum of 25 items.
placeholder?
optional
placeholder:string
Defined in: packages/types/dist/types/discord.d.ts:1619
A custom placeholder text if nothing is selected. Maximum 150 characters.
type
type:
SelectMenu
|SelectMenuUsers
|SelectMenuRoles
|SelectMenuUsersAndRoles
|SelectMenuChannels
Defined in: packages/types/dist/types/discord.d.ts:1615