2021-10-08 16:58:57 -07:00
|
|
|
module.exports = (client, interaction) => {
|
2023-03-19 02:50:24 -07:00
|
|
|
|
|
|
|
if (!interaction.isCommand()) return;
|
2021-10-08 16:58:57 -07:00
|
|
|
|
|
|
|
const command = client.commands.get(interaction.commandName);
|
|
|
|
|
2023-03-19 02:50:24 -07:00
|
|
|
if (!command) return void interaction.reply({
|
|
|
|
content: `Command \`${interaction.commandName}\` not found.`,
|
|
|
|
ephemeral: true
|
|
|
|
});
|
|
|
|
|
2021-10-08 16:58:57 -07:00
|
|
|
command.run(client, interaction);
|
|
|
|
};
|