server: avoid pinging the user when logging the command

This commit is contained in:
liushuyu 2023-11-25 20:33:29 -07:00
parent aa54213734
commit 0432fbe881
No known key found for this signature in database
GPG key ID: 23D1CE4534419437

View file

@ -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] }),