aboutsummaryrefslogtreecommitdiff
path: root/discord/user.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2017-02-10 03:10:30 -0500
committerRapptz <[email protected]>2017-02-10 03:10:30 -0500
commitbfe2b4fc031f92153da777225a691f99c34aad76 (patch)
treef0f91b7179f9b8b3bb2950c4b8dab6791ab23e39 /discord/user.py
parentFix NameError in Client.get_invite (diff)
downloaddiscord.py-bfe2b4fc031f92153da777225a691f99c34aad76.tar.xz
discord.py-bfe2b4fc031f92153da777225a691f99c34aad76.zip
Fix Member.display_name to work.
Diffstat (limited to 'discord/user.py')
-rw-r--r--discord/user.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/user.py b/discord/user.py
index cadf84db..0cde6ea0 100644
--- a/discord/user.py
+++ b/discord/user.py
@@ -120,7 +120,7 @@ class BaseUser:
if they have a guild specific nickname then that
is returned instead.
"""
- return getattr(self, 'nick', None) or self.name
+ return self.name
def mentioned_in(self, message):
"""Checks if the user is mentioned in the specified message.