Hierarchy

  • Button

Constructors

Properties

button: ButtonBuilder

The built button.

callback: ((button: ButtonInteraction<CacheType>) => void)

Type declaration

    • (button: ButtonInteraction<CacheType>): void
    • The callback to call when the button is pressed.

      Parameters

      • button: ButtonInteraction<CacheType>

      Returns void

customId?: string

The identifier of button interaction.

id: string

The identifier of the button to get from the client.

rawRequires: string[]

The raw requirements before load.

requires: (undefined | Requirement)[]

The requirements of the button.

Methods

  • Call the callback.

    Parameters

    • button: ButtonInteraction<CacheType>

      The button that was pressed.

    Returns Promise<undefined | Button>

  • Set the callback to call when the button is pressed.

    Parameters

    • callback: ((button: ButtonInteraction<CacheType>) => void)

      The callback to call when the button is pressed.

        • (button: ButtonInteraction<CacheType>): void
        • Parameters

          • button: ButtonInteraction<CacheType>

          Returns void

    Returns Button

Generated using TypeDoc