Creates a new select menu from API data.
Optional
data: Partial<APIRoleSelectComponent>The API data to create this select menu with
Adds default roles to this auto populated select menu.
The roles to add
Clears the id of this component, defaulting to a default incremented id.
Sets the custom id for this select menu.
The custom id to use
Sets default roles for this auto populated select menu.
The roles to set
Sets whether this select menu is disabled.
Optional
disabled: booleanWhether this select menu is disabled
Sets the id (not the custom id) for this component.
The id for this component
Sets the maximum values that must be selected in the select menu.
The maximum values that must be selected
Sets the minimum values that must be selected in the select menu.
The minimum values that must be selected
Sets the placeholder for this select menu.
The placeholder to use
Serializes this builder to API-compatible JSON data.
A builder that creates API-compatible JSON data for role select menus.