Browse Source

Apply change from code review

Forgot to add this one

Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
pull/10211/head
blord0 4 weeks ago
committed by GitHub
parent
commit
6eb8e05e49
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):
@property
def primary_guild(self) -> Optional[PrimaryGuild]:
""":class:`PrimaryGuild`: Returns the user's primary guild, if applicable.
\nIf the user has not set a primary guild, ``None`` is returned."""
""":class:`PrimaryGuild`: Returns the user's primary guild, if applicable."""
if self._primary_guild:
return PrimaryGuild(state=self._state, data=self._primary_guild)
return None

Loading…
Cancel
Save