diff --git a/events/interactionCreate.js b/events/interactionCreate.js index 81241f4..2a312cf 100644 --- a/events/interactionCreate.js +++ b/events/interactionCreate.js @@ -3,23 +3,22 @@ module.exports = { once: false, listener: (client, config) => async (interaction) => { - if (interaction.isApplicationCommand()) { - try { - await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction); - } catch (error) { - console.error(error); - interaction.channel.send({ - embeds: [{ - title: '<:AnitroxError:809651936563429416> **Something went wrong!**', - description: error.stack, - color: 13632027, - footer: { - icon_url: interaction.user.displayAvatarURL(), - text: config.footerTxt - } - }] - }); - } + try { + await client.commands.get(interaction.commandName)?.parseInteraction(client, config, interaction); + } catch (error) { + console.error(error); + interaction.channel.send({ + embeds: [{ + title: '<:AnitroxError:809651936563429416> **Something went wrong!**', + description: error.stack, + color: 13632027, + footer: { + icon_url: interaction.user.displayAvatarURL(), + text: config.footerTxt + } + }] + }); } } -}; +} +;