A builder that creates API-compatible JSON data for modals.
Adds components to this modal.
Sets components for this modal.
Sets the custom id of this modal.
The custom id to use
Sets the title of this modal.
The title 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.