Force PNG image format (remove animations in embeds)

This commit is contained in:
spiral 2020-12-28 04:47:14 +00:00
parent f18a78b59c
commit 44fa097900
No known key found for this signature in database
GPG Key ID: 00C26F208D3FCCAB

View File

@ -169,7 +169,7 @@ namespace PluralKit.Bot
return new DiscordEmbedBuilder()
// unicodes: [three-per-em space] [left arrow emoji] [force emoji presentation]
.WithAuthor($"{username}\u2004\u21a9\ufe0f", iconUrl: original.Author.AvatarUrl)
.WithAuthor($"{username}\u2004\u21a9\ufe0f", iconUrl: original.Author.GetAvatarUrl(ImageFormat.Png, 1024))
.WithDescription(content.ToString())
.Build();
}