logiksystems/hephaestus-framework

The Hephaestus Framework.

0.0.0 2024-05-03 14:24 UTC

This package is auto-updated.

Last update: 2024-05-03 14:45:01 UTC


README

68747470733a2f2f63646e2e646973636f72646170702e636f6d2f617661746172732f313232373533313239353639333733333931392f65643965626366353964643965646163643432356236613065633938363430373f73697a653d353132

Hephaestus

  • Define Interaction Handlers on the move
  • Defining APPLICATION_COMMAND
  1. Creating a file in the good directory (currently: `/app/InteractionHandlers/SlashCommands`)
  2. Extending the \App\Framework\InteractionHandlers\ApplicationCommands\AbstractSlashCommand in your new php class.
  3. You must specify `name` and `description` property.
  4. The `handle` method will be invoked when the bot receive an interaction associated with this handler.

TODO:

  • Support handling for
    • ☑️ APPLICATION_COMMAND. (Not totally implemented).
    • ❌ PING interactions.
    • ❌ APPLICATION_COMMAND_AUTOCOMPLETE interaction
    • ❌ MODAL_SUBMIT interaction
    • ☑️ MESSAGE_COMPONENT interaction. (Not totally implemented).