Use display name instead of username

This commit is contained in:
Noi 2023-09-09 10:46:45 -07:00
parent acb052bea3
commit 9baf7016a2

View file

@ -22,9 +22,9 @@ static class Common {
// We do a little bit of special formatting here to try to emphasize the username/nickname over the discriminator
if (member.DiscriminatorValue == 0) {
if (member.Nickname != null) {
return $"**{escapeFormattingCharacters(member.Nickname)}** ({member.Username})";
return $"**{escapeFormattingCharacters(member.Nickname)}** ({escapeFormattingCharacters(member.ToString())})";
}
return member.Username;
return member.ToString();
} else {
var username = escapeFormattingCharacters(member.Username);
if (member.Nickname != null) {