2021-10-08 23:58:57 +00:00
|
|
|
module.exports = (client, interaction) => {
|
2022-12-02 08:54:17 +00:00
|
|
|
if (!interaction.isChatInteraction()) return;
|
2021-10-08 23:58:57 +00:00
|
|
|
|
|
|
|
const command = client.commands.get(interaction.commandName);
|
|
|
|
|
2022-12-02 08:54:17 +00:00
|
|
|
if (!command)
|
|
|
|
return void interaction.reply({
|
|
|
|
content: `Command \`${interaction.commandName}\` not found.`,
|
|
|
|
ephermal: true,
|
|
|
|
});
|
|
|
|
|
2021-10-08 23:58:57 +00:00
|
|
|
command.run(client, interaction);
|
|
|
|
};
|