Browse Source

Fix documentation for `User.display_name`

pull/10385/head
IndorilReborn 6 months ago
committed by GitHub
parent
commit
409662c8c5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      discord/user.py

4
discord/user.py

@ -313,9 +313,7 @@ class BaseUser(_UserTag):
def display_name(self) -> str:
""":class:`str`: Returns the user's display name.
For regular users this is just their global name or their username,
but if they have a guild specific nickname then that
is returned instead.
This is the user's global name or username
"""
if self.global_name:
return self.global_name

Loading…
Cancel
Save