mirror of
https://github.com/darksaid98/cadence-discord-bot.git
synced 2026-12-02 22:16:13 +00:00
More info on logging
This commit is contained in:
1 parent
6d1b1a12d1
commit
18364b67cf
1 file changed
+2
-2
@@ -93,12 +93,12 @@ client.on('interactionCreate', async (interaction) => {
|
||||
await interaction.deferReply();
|
||||
await command.run({ interaction, client });
|
||||
console.log(
|
||||
`Command '/${interaction.commandName}' was executed successfully.`
|
||||
`${new Date().toISOString().substring(11, 19)}: ${interaction.guild.name} (#${interaction.guild.memberCount})> Command '/${interaction.commandName}' was executed successfully.`
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
console.log(
|
||||
`Command '/${interaction.commandName}' failed unexpectedly.`
|
||||
`${new Date().toISOString().substring(11, 19)}: ${interaction.guild.name} (#${interaction.guild.memberCount})> Command '/${interaction.commandName}' failed unexpectedly.`
|
||||
);
|
||||
|
||||
await interaction.editReply({
|
||||
|
||||
Reference in new issue
Block a user