class ModalBuilder
implements
JSONEncodable<APIModalInteractionResponseCallbackData>export declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCallbackData>
A builder that creates API-compatible JSON data for modals.
readonlyActionRowBuilder<ModalActionRowComponentBuilder>[] components :
The components within this modal.
readonlyPartial<APIModalInteractionResponseCallbackData> data :
The API data associated with this modal.
setComponentscomponents: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>) : this (
components: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>
Sets components for this modal.
setCustomIdcustomId: string) : this (
customId: string
Sets the custom id of this modal.
setTitletitle: string) : this (
title: string
Sets the title of this modal.
toJSONAPIModalInteractionResponseCallbackData () :
Serializes this builder to API-compatible JSON data.