Optional
data: Partial<MentionableSelectMenuComponentData | APIMentionableSelectComponent>Readonly
dataAdds default roles to this auto populated select menu.
Rest
...roles: RestOrArray<string>The roles to add
Adds default users to this auto populated select menu.
Rest
...users: RestOrArray<string>The users to add
Adds default values to this auto populated select menu.
Rest
...values: RestOrArray<APISelectMenuDefaultValue<Role> | APISelectMenuDefaultValue<User>>The values to add
Sets the custom id for this select menu.
The custom id to use
Sets default values for this auto populated select menu.
Rest
...values: RestOrArray<APISelectMenuDefaultValue<Role> | APISelectMenuDefaultValue<User>>The values to set
Sets whether this select menu is disabled.
Optional
disabled: booleanWhether this select menu is disabled
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.
This method runs validations on the data before serializing it. As such, it may throw an error if the data is invalid.
Static
fromGenerated using TypeDoc
The API data associated with this component.