File size: 527 Bytes
3c7e34b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 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);
},
};
|