try to fix no work

This commit is contained in:
valentijn
2024-01-04 16:33:20 +01:00
parent 78a9688276
commit d2e488d4ea
2 changed files with 18 additions and 14 deletions

3
bot.js
View File

@@ -33,7 +33,8 @@ client.on(Events.InteractionCreate, async interaction => {
const command = client.commands.get(interaction.commandName);
if (command) {
try {
await command.execute(interaction);
console.log(`executing ${interaction.commandName}`)
await command.execute(interaction);
} catch (error) {
console.error(error);