fix Discord per-guild avatars in replies

because Discord changed the URL format, for some reason
This commit is contained in:
spiral 2021-09-30 15:36:01 -04:00
parent f785fa1204
commit c31ea56bc9
No known key found for this signature in database
GPG Key ID: A6059F0CA0E1BD31

View File

@ -230,7 +230,7 @@ namespace PluralKit.Bot
var username = nickname ?? repliedTo.Author.Username; var username = nickname ?? repliedTo.Author.Username;
var avatarUrl = avatar != null var avatarUrl = avatar != null
? $"https://cdn.discordapp.com/guilds/{trigger.GuildId}/users/{repliedTo.Author.Id}/{avatar}.png" ? $"https://cdn.discordapp.com/guilds/{trigger.GuildId}/users/{repliedTo.Author.Id}/avatars/{avatar}.png"
: $"https://cdn.discordapp.com/avatars/{repliedTo.Author.Id}/{repliedTo.Author.Avatar}.png"; : $"https://cdn.discordapp.com/avatars/{repliedTo.Author.Id}/{repliedTo.Author.Avatar}.png";
return new Embed return new Embed