mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-23 17:04:12 +00:00
Use display name instead of username
This commit is contained in:
parent
acb052bea3
commit
9baf7016a2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
// 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.DiscriminatorValue == 0) {
|
||||||
if (member.Nickname != null) {
|
if (member.Nickname != null) {
|
||||||
return $"**{escapeFormattingCharacters(member.Nickname)}** ({member.Username})";
|
return $"**{escapeFormattingCharacters(member.Nickname)}** ({escapeFormattingCharacters(member.ToString())})";
|
||||||
}
|
}
|
||||||
return member.Username;
|
return member.ToString();
|
||||||
} else {
|
} else {
|
||||||
var username = escapeFormattingCharacters(member.Username);
|
var username = escapeFormattingCharacters(member.Username);
|
||||||
if (member.Nickname != null) {
|
if (member.Nickname != null) {
|
||||||
|
|
Loading…
Reference in a new issue