mirror of
https://github.com/NoiTheCat/BirthdayBot.git
synced 2024-11-21 13:54:36 +00:00
And escape special characters from display name...
This commit is contained in:
parent
9baf7016a2
commit
5aaa860205
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ static class Common {
|
|||
if (member.Nickname != null) {
|
||||
return $"**{escapeFormattingCharacters(member.Nickname)}** ({escapeFormattingCharacters(member.ToString())})";
|
||||
}
|
||||
return member.ToString();
|
||||
return escapeFormattingCharacters(member.ToString());
|
||||
} else {
|
||||
var username = escapeFormattingCharacters(member.Username);
|
||||
if (member.Nickname != null) {
|
||||
|
|
Loading…
Reference in a new issue