diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 2cb7114..4eabb78 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -2,6 +2,7 @@ module.exports = { event: require('path').parse(__filename).name, once: false, listener: (client, config) => + async (interaction) => { try { await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction); } catch (error) { @@ -19,5 +20,4 @@ module.exports = { }); } } -} -; +};