DiscordStringSelectComponent
Documentation / @discordeno/types / DiscordStringSelectComponent
Interface: DiscordStringSelectComponent
Defined in: discord/components.ts:192
https://docs.discord.com/developers/components/reference#string-select-string-select-structure
Extends
Properties
custom_id
custom_id:
string
Defined in: discord/components.ts:196
A custom identifier for this component. Maximum 100 characters.
disabled?
optionaldisabled?:boolean
Defined in: discord/components.ts:222
Whether select menu is disabled
Remarks
This value cannot be set for select menus in modals
Default
false
id?
optionalid?:number
Defined in: discord/components.ts:100
32 bit integer used as an optional identifier for component
Inherited from
max_values?
optionalmax_values?:number
Defined in: discord/components.ts:204
The maximum number of items that can be selected. Default 1. Max 25.
min_values?
optionalmin_values?:number
Defined in: discord/components.ts:202
The minimum number of items that must be selected. Default 1. Between 0-25.
options
options:
DiscordSelectOption[]
Defined in: discord/components.ts:198
The choices! Maximum of 25 items.
placeholder?
optionalplaceholder?:string
Defined in: discord/components.ts:200
A custom placeholder text if nothing is selected. Maximum 150 characters.
required?
optionalrequired?:boolean
Defined in: discord/components.ts:213
Whether this component is required to be filled
Remarks
This value is only valid for string select menus in modals
Default
true
type
type:
StringSelect
Defined in: discord/components.ts:193
The type of the component