Browse Source

Merge 409662c8c5 into 2fbed93624

pull/10385/merge
IndorilReborn 1 month ago
committed by GitHub
parent
commit
bd9f1a32cc
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: def display_name(self) -> str:
""":class:`str`: Returns the user's display name. """:class:`str`: Returns the user's display name.
For regular users this is just their global name or their username, This is the user's global name or username
but if they have a guild specific nickname then that
is returned instead.
""" """
if self.global_name: if self.global_name:
return self.global_name return self.global_name

Loading…
Cancel
Save