wsb-bot / src /events /interactionCreate.js
APRK01
Initial commit: WSB Discord Bot
3c7e34b
raw
history blame
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);
},
};