From 87cc461c79a87efe9d065b9d27a31480e8978317 Mon Sep 17 00:00:00 2001 From: almeidx Date: Thu, 29 Jul 2021 01:10:53 +0100 Subject: [PATCH] always set author icon url using dynamic --- .../plugins/Starboard/util/createStarboardEmbedFromMessage.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/backend/src/plugins/Starboard/util/createStarboardEmbedFromMessage.ts b/backend/src/plugins/Starboard/util/createStarboardEmbedFromMessage.ts index 209d8ca8..0cc579a9 100644 --- a/backend/src/plugins/Starboard/util/createStarboardEmbedFromMessage.ts +++ b/backend/src/plugins/Starboard/util/createStarboardEmbedFromMessage.ts @@ -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.