Holana/events/interactionCreate.js
2022-12-02 21:54:17 +13:00

13 lines
No EOL
379 B
JavaScript

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