export declare abstract class BaseSelectMenuBuilder<SelectMenuType extends APISelectMenuComponent> extends ComponentBuilder<SelectMenuType>
export declare abstract class BaseSelectMenuBuilder<SelectMenuType extends APISelectMenuComponent> extends ComponentBuilder<SelectMenuType>
The base select menu builder that contains common symbols for select menu builders.
Extends
ComponentBuilder<SelectMenuType>Name | Constraints | Optional | Default | Description |
---|---|---|---|---|
SelectMenuType | APISelectMenuComponent | No | The type of select menu this would be instantiated for. |
Readonly
data
:
Partial<DataType>
The API data associated with this component.
Inherited from ComponentBuildersetCustomId(customId)
:
this
Sets the custom id for this select menu.
Name | Type | Optional | Description |
---|---|---|---|
customId | string | No | The custom id to use |
setDisabled(disabled?)
:
this
Sets whether this select menu is disabled.
Name | Type | Optional | Description |
---|---|---|---|
disabled | boolean | Yes | Whether this select menu is disabled |
setMaxValues(maxValues)
:
this
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 |
setMinValues(minValues)
:
this
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 |
setPlaceholder(placeholder)
:
this
Sets the placeholder for this select menu.
Name | Type | Optional | Description |
---|---|---|---|
placeholder | string | No | The placeholder to use |
toJSON()
:
SelectMenuType
Serializes this builder to API-compatible JSON data.