Try to fix: Interaction has already been acknowled

This commit is contained in:
Kalle 2022-07-03 12:54:49 +03:00
parent 12c59a40bf
commit 477ebbf996

View File

@ -27,7 +27,11 @@ client.on("interactionCreate", async (interaction) => {
);
}
return command.execute({ interaction, client }).catch(console.error);
try {
await command.execute({ interaction, client });
} catch (e) {
console.error(e);
}
});
client.login(process.env["BOT_TOKEN"]).catch((err) => console.error(err));