From 9127ce10d6f6b638407d0fb0f99cb3baf1f7bd2c Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 8 Jul 2023 15:06:55 +0200 Subject: [PATCH] Log command params --- index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 6b803dc..c3d2202 100644 --- a/index.js +++ b/index.js @@ -118,9 +118,9 @@ client.on('interactionCreate', async (interaction) => { console.log( `${new Date().toISOString().substring(11, 19)}: Info: ${ interaction.guild.name - } (#${interaction.guild.memberCount})> Command '/${ - interaction.commandName - }' executed in ${executionTime} ms.` + } (#${ + interaction.guild.memberCount + })> Command '${interaction}' executed in ${executionTime} ms.` ); } catch (error) { // log error to console with full object depth @@ -128,9 +128,9 @@ client.on('interactionCreate', async (interaction) => { console.log( `${new Date().toISOString().substring(11, 19)}: Error: 🚨 ${ interaction.guild.name - } (#${interaction.guild.memberCount})> Command '/${ - interaction.commandName - }' failed unexpectedly.` + } (#${ + interaction.guild.memberCount + })> Command '${interaction}' failed unexpectedly.` ); console.log(`Interaction input:\n${interaction}`);