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
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ client.on('messageCreate', async (message) => {
.addFields({ name: 'Command', value: `\`\`\`\n${message.content}\n\`\`\``, inline: false }) .addFields({ name: 'Command', value: `\`\`\`\n${message.content}\n\`\`\``, inline: false })
.setTimestamp() .setTimestamp()
.setColor('Blue'); .setColor('Blue');
const userInfo = `${message.author?.toString()} (${message.author?.username}) (${message.author})`; const userInfo = `\`${message.author?.toString()}\` (${message.author?.username})`;
await Promise.all( await Promise.all(
[ [
state.msglogChannel?.send({ content: userInfo, embeds: [commandUsageEmbed] }), state.msglogChannel?.send({ content: userInfo, embeds: [commandUsageEmbed] }),