Holana/events/interactionCreate.js
EmotionChild b4c4c7bd1e Fixed some bugs - EmotionChild
Fixed some bugs which were causing errors
2021-12-13 13:25:45 +13:00

13 lines
No EOL
352 B
JavaScript

module.exports = (client, interaction) => {
if (!interaction.isCommand()) return;
const command = client.commands.get(interaction.commandName);
if (!command) return void interaction.reply({
content: `Command \`${interaction.commandName}\` not found.`,
ephemeral: true
});
command.run(client, interaction);
};