class ModalBuilder
implements
JSONEncodable<APIModalInteractionResponseCallbackData>declare class ModalBuilder implements JSONEncodable<APIModalInteractionResponseCallbackData>
Constructors
{ components, ...data }?: Partial<APIModalInteractionResponseCallbackData>)
constructor({ components, ...data }?: Partial<APIModalInteractionResponseCallbackData>
Constructs a new instance of the ModalBuilder
class
readonlyActionRowBuilder<ModalActionRowComponentBuilder>[] components :
readonlyPartial<APIModalInteractionResponseCallbackData> data :
setComponentscomponents: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>) : this (
components: RestOrArray<ActionRowBuilder<ModalActionRowComponentBuilder>>
Sets the components in this modal
setCustomIdcustomId: string) : this (
customId: string
Sets the custom id of the modal
setTitletitle: string) : this (
title: string
Sets the title of the modal
toJSONAPIModalInteractionResponseCallbackData () :
Serializes this component to an API-compatible JSON object