|
|
|
@ -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)
|
|
|
|
|