mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 16:51:59 +00:00
Simplify User.display_name a bit.
This commit is contained in:
parent
85806ef1d6
commit
e112536ce2
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user