From 6ad65e70197299c84a5997edc796092ab74f6ff3 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Tue, 9 Jul 2024 21:50:35 +0500 Subject: [PATCH] more readable logs --- events/CommandHandler.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/events/CommandHandler.js b/events/CommandHandler.js index 190d9d79..5fff0964 100644 --- a/events/CommandHandler.js +++ b/events/CommandHandler.js @@ -58,13 +58,13 @@ class CommandHandler extends BaseEvent { } client.logger.cmd( - `User ${interaction.user.getUsername()} used ${command.command.name} in ${interaction.guild ? interaction.guild.name : "DM"} with arguments: ${ + `[${interaction.guild ? interaction.guild.name : "DM"}]: [${interaction.user.getUsername()}] => /${command.command.name}${ interaction.options.data.length > 0 - ? interaction.options.data + ? ", args: " + interaction.options.data .map(arg => { return `${arg.name}: ${arg.value}`; }).join(", ") - : "no args" + : "" }`, );