Adding an Event Handler
How to handle a new Discord event.
- Create
src/events/{folderName}/if the event has no folder yet. - Add a file whose default export takes the discord.js payload for that event.
- Map the event name to the folder in
eventFolderMapinsrc/handlers/eventHandler.ts.
Run bun run check and bun run lint, restart the bot, trigger the event in Discord, and confirm the
handler runs without errors. Conventions: Event System.