SelectConfig
SelectConfig<
T,O> =object& (Textends"string"?object:unknown) & (Textends"channel"?object:unknown)
Defined in: select.ts:5
Type Parameters
Section titled “Type Parameters”T extends SelectType
O
Type Declaration
Section titled “Type Declaration”id:
string
The id Discord sends back with the pick.
optionalmax?:number
The most items the user can pick. Defaults to 1.
optionalmin?:number
The fewest items the user must pick. Defaults to 1.
options?
Section titled “options?”
optionaloptions?:O
The items of a string menu, keyed by the label Discord shows.
placeholder?
Section titled “placeholder?”
optionalplaceholder?:string
The text the menu shows before a pick.