| const { handleTicketButton } = require('../systems/tickets'); |
| const { handleDropButton, handleDownloadButton } = require('../systems/drops'); |
| const { handleMassDropInteraction } = require('../systems/massdrop'); |
|
|
| module.exports = { |
| name: 'interactionCreate', |
| async execute(client, interaction) { |
| |
| if (!interaction.isButton() && !interaction.isStringSelectMenu() && !interaction.isModalSubmit()) return; |
|
|
| |
| if (interaction.isButton() && interaction.customId.startsWith('dl_')) { |
| await handleDownloadButton(interaction); |
| return; |
| } |
|
|
| |
| const massDropHandled = await handleMassDropInteraction(interaction); |
| if (massDropHandled) return; |
|
|
| |
| if (interaction.isButton()) { |
| const dropHandled = await handleDropButton(interaction); |
| if (dropHandled) return; |
|
|
| |
| await handleTicketButton(interaction, client); |
| } |
| }, |
| }; |
|
|