Creates a new Modal instance.
Optional data for the modal.
Optional data for the modal.
Adds components to the modal.
Components to be added to the modal.
The current Modal instance.
Sets the callback function to be executed when the modal is submitted.
The callback function.
The current Modal instance.
Set the components to the modal.
The components to set into the modal.
The current Modal instance.
Sets the custom ID of the modal.
The custom ID for the modal.
The current Modal instance.
Sets the title of the modal.
The title of the modal.
The current Modal instance.
Converts the modal to JSON format.
The modal data in JSON format.
Represents a modal for user interactions.
Template: T
The type of components allowed in the modal.
Example