Skip to content

SelectConfig

SelectConfig<T, O> = object & (T extends "string" ? object : unknown) & (T extends "channel" ? object : unknown)

Defined in: select.ts:5

T extends SelectType

O

id: string

The id Discord sends back with the pick.

optional max?: number

The most items the user can pick. Defaults to 1.

optional min?: number

The fewest items the user must pick. Defaults to 1.

optional options?: O

The items of a string menu, keyed by the label Discord shows.

optional placeholder?: string

The text the menu shows before a pick.