[HTML] Link to pre-resized avatar image for better image quality

pull/613/head
Tyrrrz 3 years ago
parent 998bdaf2d4
commit 88c4330a66

@ -49,10 +49,10 @@ namespace DiscordChatExporter.Core.Discord.Data
{
// Animated
if (avatarHash.StartsWith("a_", StringComparison.Ordinal))
return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.gif";
return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.gif?size=40";
// Non-animated
return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.png";
return $"https://cdn.discordapp.com/avatars/{id}/{avatarHash}.png?size=40";
}
public static User Parse(JsonElement json)

Loading…
Cancel
Save