Hierarchy

  • Modal

Constructors

Properties

callback: ((modal: ModalSubmitInteraction<CacheType>) => void)

Type declaration

    • (modal: ModalSubmitInteraction<CacheType>): void
    • The callback to call when the modal is submitted.

      Parameters

      • modal: ModalSubmitInteraction<CacheType>

      Returns void

id: string

The identifier of the modal.

modal: ModalBuilder

The built modal.

rawRequires: string[]

The raw requirements before load.

requires: (undefined | Requirement)[]

Methods

  • Call the callback.

    Parameters

    • modal: ModalSubmitInteraction<CacheType>

      The modal that was submitted.

    Returns Promise<undefined | Modal>

  • Show modal to user and recieve the input.

    Parameters

    • itr: ChatInputCommandInteraction<CacheType> | MessageContextMenuCommandInteraction<CacheType> | UserContextMenuCommandInteraction<CacheType> | StringSelectMenuInteraction<CacheType> | UserSelectMenuInteraction<CacheType> | RoleSelectMenuInteraction<CacheType> | MentionableSelectMenuInteraction<CacheType> | ChannelSelectMenuInteraction<CacheType> | ButtonInteraction<CacheType>

    Returns Promise<ModalSubmitFields>

  • Set the callback to call when the modal is submitted.

    Parameters

    • callback: ((modal: ModalSubmitInteraction<CacheType>) => void)

      The callback to call.

        • (modal: ModalSubmitInteraction<CacheType>): void
        • Parameters

          • modal: ModalSubmitInteraction<CacheType>

          Returns void

    Returns Modal

Generated using TypeDoc