3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

always set author icon url using dynamic

This commit is contained in:
almeidx 2021-07-29 01:10:53 +01:00
parent 9539c5a7de
commit 87cc461c79
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664

View file

@ -28,9 +28,7 @@ export function createStarboardEmbedFromMessage(
embed.color = color;
}
if (msg.author.avatarURL()) {
embed.author.icon_url = msg.author.avatarURL()!;
}
embed.author.icon_url = msg.author.displayAvatarURL({ dynamic: true });
// The second condition here checks for messages with only an image link that is then embedded.
// The message content in that case is hidden by the Discord client, so we hide it here too.