mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(bot): display new Discord usernames correctly
This commit is contained in:
parent
11d70666d0
commit
a0fa03599b
3 changed files with 3 additions and 2 deletions
|
|
@ -386,7 +386,7 @@ public class ProxyService
|
|||
content.Append($"*[(click to see attachment)]({jumpLink})*");
|
||||
}
|
||||
|
||||
var username = nickname ?? repliedTo.Author.Username;
|
||||
var username = nickname ?? repliedTo.Author.GlobalName ?? repliedTo.Author.Username;
|
||||
var avatarUrl = avatar != null
|
||||
? $"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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue