From 5ab7ea3df38ff45e6afd6b03aa8f615cc1b627f3 Mon Sep 17 00:00:00 2001 From: Marius Begby Date: Sat, 8 Jul 2023 17:13:06 +0200 Subject: [PATCH] Log error as error --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 2afeecb..e011f28 100644 --- a/index.js +++ b/index.js @@ -127,14 +127,14 @@ client.on('interactionCreate', async (interaction) => { } catch (error) { // log error to console with full object depth console.dir(error, { depth: null }); - console.log( + console.error( `${new Date().toISOString().substring(11, 19)}: Error: 🚨 ${ interaction.guild.name } (#${ interaction.guild.memberCount })> Command '${interaction}' failed unexpectedly.` ); - console.log(`Interaction input:\n${interaction}`); + console.error(`Interaction input:\n${interaction}`); await interaction.editReply({ embeds: [