Optional
data: Partial<ModalComponentData> | Partial<APIModalInteractionResponseCallbackData>Readonly
componentsReadonly
dataThe API data associated with this modal.
Adds components to this modal.
Rest
...components: RestOrArray<ActionRowBuilder<TextInputBuilder> | APIActionRowComponent<APITextInputComponent>>The components to add
Sets components for this modal.
Rest
...components: RestOrArray<ActionRowBuilder<TextInputBuilder>>The components to set
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.
Static
fromGenerated using TypeDoc
The components within this modal.