More info on logging

This commit is contained in:
Marius Begby committed 2023-07-07 15:33:49 +02:00
1 parent 6d1b1a12d1
commit 18364b67cf
1 file changed
+2 -2
+2 -2
View File
@@ -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({