A builder that creates API-compatible JSON data for modals.
Creates a new modal from API data.
Name | Type | Optional | Description |
---|---|---|---|
data | Partial<APIModalInteractionResponseCallbackData> | Yes | The API data to create this modal with |
Adds components to this modal.
Name | Type | Optional | Description |
---|---|---|---|
components | RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder> | APIActionRowComponent<APIModalActionRowComponent>> | No | The components to add |
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.