Download src/events/interactionCreate.js from APRKDEV/wsb-bot: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/interactionCreate.js
- Command line
-
hf download hf://spaces/APRKDEV/wsb-bot@c8f3880098432483b23491dd763585274d00f8c8/src/events/interactionCreate.js
-
curl -L -o interactionCreate.js https://huggingface.co/spaces/APRKDEV/wsb-bot/resolve/c8f3880098432483b23491dd763585274d00f8c8/src/events/interactionCreate.js
527 Bytes
| const { handleTicketButton } = require('../systems/tickets'); | |
| const { handleDropButton } = require('../systems/drops'); | |
| module.exports = { | |
| name: 'interactionCreate', | |
| async execute(client, interaction) { | |
| if (!interaction.isButton()) return; | |
| // Try drop buttons first (DM interactions) | |
| const dropHandled = await handleDropButton(interaction); | |
| if (dropHandled) return; | |
| // Then ticket buttons (server interactions) | |
| await handleTicketButton(interaction, client); | |
| }, | |
| }; | |