aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/user.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/discord/user.py b/discord/user.py
index b1cc0b4c..ce68775f 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -133,6 +133,5 @@ class User:
if they have a server specific nickname then that
is returned instead.
"""
- nickname = getattr(self, 'nick', None)
- return nickname if nickname is not None else self.name
+ return getattr(self, 'nick', self.name)