Display guild user nickname on message card if set

This commit is contained in:
xBelladonna 2019-09-22 02:04:20 +09:30
parent 0ec522ca0a
commit 658bcf1faf

View File

@ -176,7 +176,7 @@ namespace PluralKit.Bot {
.OrderByDescending(role => role.Position) .OrderByDescending(role => role.Position)
.ToList(); .ToList();
userStr = guildUser?.NameAndMention(); userStr = guildUser.Nickname != null ? $"**Username:** {guildUser?.NameAndMention()}\n**Nickname:** {guildUser.Nickname}" : guildUser?.NameAndMention();
} }
} }