fix Discord per-guild avatars in replies
because Discord changed the URL format, for some reason
This commit is contained in:
parent
f785fa1204
commit
c31ea56bc9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user