Boilerplate base class of interaction related extensions.

  • Any INTERACTION extension must inherit from here
  • Always override postExternalSlashCommands() if you want to post your own commands
  • override processCommand and/or processButton depending on which type you want

Hierarchy

Implements

Constructors

Accessors

Methods

  • Whether the extension can handle buttons

    Parameters

    • interaction: ButtonInteraction<CacheType>

      the button to test

    Returns boolean

  • Whether the extension can handle slash commands.

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>

      the slash command to test

    Returns boolean

  • Whether the extension can handle modal submit

    Parameters

    • interaction: ModalSubmitInteraction<CacheType>

      the modal to test

    Returns boolean

  • Interface to the button processor. If the extension can handle this button, it should reply inside this method

    Parameters

    • interaction: ButtonInteraction<CacheType>

      the button that's guaranteed to be handled by this extension

    Returns Promise<void>

  • Interface to the command processor. If the extension can handle this slash command, it should reply inside this method

    Parameters

    • interaction: ChatInputCommandInteraction<CacheType>

      the slash command that's guaranteed to be handled by this extension

    Returns Promise<void>

  • Interface to the modal submit processor. If the extension can handle this button, it should reply inside this method

    Parameters

    • interaction: ModalSubmitInteraction<CacheType>

      the modal that's guaranteed to be handled by this extension

    Returns Promise<void>

Generated using TypeDoc