| 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); | |
| }, | |
| }; | |