Class used to build select menu components to be sent through the API
Constructs a new instance of the
ChannelSelectMenuBuilder
className | Type | Optional | Description |
---|---|---|---|
data | Partial<ChannelSelectMenuComponentData | APIChannelSelectComponent> | Yes | None |
The API data associated with this component.
Inherited from ComponentBuilderAdds channel types to this select menu.
Name | Type | Optional | Description |
---|---|---|---|
...types | RestOrArray<ChannelType> | No | The channel types to use |
Creates a new select menu builder from JSON data
Name | Type | Optional | Description |
---|---|---|---|
other | JSONEncodable<APISelectMenuComponent> | APISelectMenuComponent | No | The other data |
Sets channel types for this select menu.
Name | Type | Optional | Description |
---|---|---|---|
...types | RestOrArray<ChannelType> | No | The channel types to use |
Sets the custom id for this select menu.
Name | Type | Optional | Description |
---|---|---|---|
customId | string | No | The custom id to use |
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 placeholder for this select menu.
Name | Type | Optional | Description |
---|---|---|---|
placeholder | string | No | The placeholder to use |
Serializes this builder to API-compatible JSON data.