mirror of
https://github.com/NoiTheCat/WorldTime.git
synced 2024-11-24 01:14:13 +00:00
Use display name
The documentation misled me a bit...
This commit is contained in:
parent
4ed5640bc1
commit
f310dc72ca
1 changed files with 3 additions and 2 deletions
|
@ -67,10 +67,11 @@ public class CommandsBase : InteractionModuleBase<ShardedInteractionContext> {
|
|||
}
|
||||
|
||||
if (user.DiscriminatorValue == 0) {
|
||||
var username = escapeFormattingCharacters(user.GlobalName ?? user.Username);
|
||||
if (user.Nickname != null) {
|
||||
return $"**{escapeFormattingCharacters(user.Nickname)}** ({escapeFormattingCharacters(user.ToString())})";
|
||||
return $"**{escapeFormattingCharacters(user.Nickname)}** ({username})";
|
||||
}
|
||||
return escapeFormattingCharacters(user.ToString());
|
||||
return username;
|
||||
} else {
|
||||
var username = escapeFormattingCharacters(user.Username);
|
||||
if (user.Nickname != null) {
|
||||
|
|
Loading…
Reference in a new issue