fix bridged replies on discord

This commit is contained in:
janderedev 2022-05-07 20:19:53 +02:00
parent b49ecb3f6a
commit ed85be6cdb
No known key found for this signature in database
GPG key ID: 5D5E18ACB990F57A

View file

@ -182,6 +182,7 @@ client.on('message', async message => {
embed.setAuthor({ embed.setAuthor({
name: `@${msg?.author?.username ?? 'Unknown'}`, name: `@${msg?.author?.username ?? 'Unknown'}`,
iconURL: msg?.author?.generateAvatarURL({ size: 64 }), iconURL: msg?.author?.generateAvatarURL({ size: 64 }),
url: msg?.url,
}); });
if (msg?.content) embed.setDescription('>>> ' + clipText(msg.content, 200)); if (msg?.content) embed.setDescription('>>> ' + clipText(msg.content, 200));
} }