class ModalBuilder
implements
JSONEncodable<APIModalInteractionResponseCallbackData>export declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCallbackData>A builder that creates API-compatible JSON data for modals.
readonlycomponents : ActionRowBuilder<ModalActionRowComponentBuilder>[]
The components within this modal.
readonlydata : Partial<APIModalInteractionResponseCallbackData>
The API data associated with this modal.
setComponents(...components: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>) : this
...components: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>
Sets components for this modal.
setCustomId(customId: string) : this
customId: string
Sets the custom id of this modal.
setTitle(title: string) : this
title: string
Sets the title of this modal.
toJSON() : APIModalInteractionResponseCallbackData
Serializes this builder to API-compatible JSON data.