mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-10-25 10:32:59 +00:00
Simplify User.display_name a bit.
This commit is contained in:
@@ -133,6 +133,5 @@ class User:
|
|||||||
if they have a server specific nickname then that
|
if they have a server specific nickname then that
|
||||||
is returned instead.
|
is returned instead.
|
||||||
"""
|
"""
|
||||||
nickname = getattr(self, 'nick', None)
|
return getattr(self, 'nick', self.name)
|
||||||
return nickname if nickname is not None else self.name
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user