Merge pull request #271 from dev-kittens/patch/reply-avatars

Force PNG image format (remove animations in embeds)
This commit is contained in:
Astrid 2020-12-28 10:11:32 +01:00 committed by GitHub
commit b5f89a1103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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();
}