Holana/events/interactionCreate.js
EmotionChild 75c6d307de Yes
2021-10-09 12:58:57 +13:00

14 lines
No EOL
353 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);
};