ModalBuilder
No summary provided.
constructor({ components, ...data }?)
Constructs a new instance of the
ModalBuilder class| Name | Type | Optional | Description |
|---|---|---|---|
| { components, ...data } | Partial<APIModalInteractionResponseCallbackData> | Yes | None |
Readonly
Readonly
Adds components to this modal
| Name | Type | Optional | Description |
|---|---|---|---|
| components | RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder> | APIActionRowComponent<APIModalActionRowComponent>> | No | The components to add to this modal |
Sets the components in this modal
| Name | Type | Optional | Description |
|---|---|---|---|
| components | RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>> | No | The components to set this modal to |
Sets the custom id of the modal
| Name | Type | Optional | Description |
|---|---|---|---|
| customId | string | No | The custom id of this modal |
Sets the title of the modal
| Name | Type | Optional | Description |
|---|---|---|---|
| title | string | No | The title of the modal |
Serializes this component to an API-compatible JSON object