Hierarchy

  • ModalBuilder
    • ModalBuilder

Constructors

Properties

components: ActionRowBuilder<TextInputBuilder>[]

The components within this modal.

data: Partial<APIModalInteractionResponseCallbackData>

The API data associated with this modal.

Methods

  • Adds components to this modal.

    Parameters

    • Rest...components: RestOrArray<ActionRowBuilder<TextInputBuilder> | APIActionRowComponent<APITextInputComponent>>

      The components to add

    Returns this

  • Sets components for this modal.

    Parameters

    • Rest...components: RestOrArray<ActionRowBuilder<TextInputBuilder>>

      The components to set

    Returns this

  • Sets the custom id of this modal.

    Parameters

    • customId: string

      The custom id to use

    Returns this

  • Parameters

    • execute: ModalSubmitInteractionExecute

    Returns this

  • Sets the title of this modal.

    Parameters

    • title: string

      The title to use

    Returns this

  • {@inheritDoc ComponentBuilder.toJSON}

    Returns APIModalInteractionResponseCallbackData

  • Parameters

    • other: APIModalInteractionResponseCallbackData | JSONEncodable<APIModalInteractionResponseCallbackData>

    Returns ModalBuilder