|
|
@ -49,10 +49,10 @@ namespace DiscordChatExporter.Core.Discord.Data
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Animated
|
|
|
|
// Animated
|
|
|
|
if (avatarHash.StartsWith("a_", StringComparison.Ordinal))
|
|
|
|
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
|
|
|
|
// 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)
|
|
|
|
public static User Parse(JsonElement json)
|
|
|
|