From 0432fbe881aa4a6e0a5074d0077d94b5fea5d469 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Sat, 25 Nov 2023 20:33:29 -0700 Subject: [PATCH] server: avoid pinging the user when logging the command --- src/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.ts b/src/server.ts index 931cee1..58404ac 100644 --- a/src/server.ts +++ b/src/server.ts @@ -218,7 +218,7 @@ client.on('messageCreate', async (message) => { .addFields({ name: 'Command', value: `\`\`\`\n${message.content}\n\`\`\``, inline: false }) .setTimestamp() .setColor('Blue'); - const userInfo = `${message.author?.toString()} (${message.author?.username}) (${message.author})`; + const userInfo = `\`${message.author?.toString()}\` (${message.author?.username})`; await Promise.all( [ state.msglogChannel?.send({ content: userInfo, embeds: [commandUsageEmbed] }),