Represents a modal builder.
Extends
BuildersModalConstructs a new instance of the 
ModalBuilder class| Name | Type | Optional | Description | 
|---|---|---|---|
| data | Partial<ModalComponentData> | Partial<APIModalInteractionResponseCallbackData> | Yes | None | 
Adds components to this modal.
| Name | Type | Optional | Description | 
|---|---|---|---|
| ...components | RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder> | APIActionRowComponent<APIModalActionRowComponent>> | No | The components to add | 
Creates a new modal builder from JSON data
| Name | Type | Optional | Description | 
|---|---|---|---|
| other | JSONEncodable<APIModalComponent> | APIModalComponent | No | The other data | 
Sets components for this modal.
| Name | Type | Optional | Description | 
|---|---|---|---|
| ...components | RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>> | No | The components to set | 
Sets the custom id of this modal.
| Name | Type | Optional | Description | 
|---|---|---|---|
| customId | string | No | The custom id to use | 
Sets the title of this modal.
| Name | Type | Optional | Description | 
|---|---|---|---|
| title | string | No | The title to use | 
Serializes this builder to API-compatible JSON data.