Server Level Extension

Hierarchy

  • IInteractionExtension

Implemented by

Properties

canHandleButton: ((interaction: ButtonInteraction<CacheType>) => boolean)

Type declaration

    • (interaction: ButtonInteraction<CacheType>): boolean
    • Whether the extension can handle buttons

      Parameters

      • interaction: ButtonInteraction<CacheType>

        the button to test

      Returns boolean

canHandleCommand: ((interaction: ChatInputCommandInteraction<CacheType>) => boolean)

Type declaration

    • (interaction: ChatInputCommandInteraction<CacheType>): boolean
    • Whether the extension can handle slash commands.

      Parameters

      • interaction: ChatInputCommandInteraction<CacheType>

        the slash command to test

      Returns boolean

canHandleModalSubmit: ((interaction: ModalSubmitInteraction<CacheType>) => boolean)

Type declaration

    • (interaction: ModalSubmitInteraction<CacheType>): boolean
    • Whether the extension can handle modal submit

      Parameters

      • interaction: ModalSubmitInteraction<CacheType>

        the modal to test

      Returns boolean

processButton: ((interaction: ButtonInteraction<CacheType>) => Promise<void>)

Type declaration

    • (interaction: ButtonInteraction<CacheType>): Promise<void>
    • 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>

processCommand: ((interaction: ChatInputCommandInteraction<CacheType>) => Promise<void>)

Type declaration

    • (interaction: ChatInputCommandInteraction<CacheType>): 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>

processModalSubmit: ((interaction: ModalSubmitInteraction<CacheType>) => Promise<void>)

Type declaration

    • (interaction: ModalSubmitInteraction<CacheType>): 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>

slashCommandData: RESTPostAPIApplicationCommandsJSONBody[]

The command data json to post to the discord server

Generated using TypeDoc