3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 08:45:03 +00:00

always set author icon url using dynamic

This commit is contained in:
almeidx 2021-07-29 01:10:53 +01:00
parent e5d7ba902a
commit b0511b6cea

View file

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