Browse Source

Apply suggestions from code review

Co-authored-by: DA344 <108473820+DA-344@users.noreply.github.com>
Co-authored-by: dolfies <jeyalfie47@gmail.com>
pull/10211/head
blord0 1 month ago
committed by GitHub
parent
commit
878930a551
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      discord/primary_guild.py

3
discord/primary_guild.py

@ -88,9 +88,8 @@ class PrimaryGuild:
@classmethod
def _default(cls, state: ConnectionState) -> Self:
"""Creates a blank :class:`PrimaryGuild`"""
payload: PrimaryGuildPayload = {"identity_guild_id": None, "identity_enabled": False, "tag": None, "badge": None}
return cls(state=state, data=payload)
def __repr__(self) -> str:
return f'<PrimaryGuild id={self.id} identity_enabled={self.identity_enabled} tag={self.tag}' f' badge={self.badge}>'
return f'<PrimaryGuild id={self.id} identity_enabled={self.identity_enabled} tag={self.tag!r}>'

Loading…
Cancel
Save