This commit is contained in:
skkeye
2024-01-04 20:50:50 -05:00
parent e2f587994c
commit 7309779923
3 changed files with 28 additions and 2 deletions

View File

@@ -3,7 +3,6 @@ const { Events } = require('discord.js');
module.exports = {
name: Events.InteractionCreate,
async execute(interaction) {
if (!interaction.isChatInputCommand()) return;
const command = interaction.client.commands.get(interaction.commandName);
@@ -11,7 +10,7 @@ module.exports = {
console.error(`No command matching ${interaction.commandName} was found.`);
return;
}
try {
await command.execute(interaction);
} catch (error) {