SelectMenuBuilder
Represents a select menu component
constructor(data?)
Constructs a new instance of the
SelectMenuBuilder
className | Type | Optional | Description |
---|---|---|---|
data | Partial<APISelectMenuComponent> | Yes | None |
Readonly
The API data associated with this component
Inherited from ComponentBuilderReadonly
The options within this select menu
Adds options to this select menu
Returns
Name | Type | Optional | Description |
---|---|---|---|
options | RestOrArray<SelectMenuOptionBuilder | APISelectMenuOption> | No | The options to add to this select menu |
Sets the custom id for this select menu
Name | Type | Optional | Description |
---|---|---|---|
customId | string | No | The custom id to use for this select menu |
Sets whether this select menu is disabled
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | Whether this select menu is disabled |
Sets the maximum values that must be selected in the select menu
Name | Type | Optional | Description |
---|---|---|---|
maxValues | number | No | The maximum values that must be selected |
Sets the minimum values that must be selected in the select menu
Name | Type | Optional | Description |
---|---|---|---|
minValues | number | No | The minimum values that must be selected |
Sets the options on this select menu
Name | Type | Optional | Description |
---|---|---|---|
options | RestOrArray<SelectMenuOptionBuilder | APISelectMenuOption> | No | The options to set on this select menu |
Sets the placeholder for this select menu
Name | Type | Optional | Description |
---|---|---|---|
placeholder | string | No | The placeholder to use for this select menu |