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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
discord/primary_guild.py
|
@ -88,9 +88,8 @@ class PrimaryGuild: |
|
|
|
|
|
|
|
|
@classmethod |
|
|
@classmethod |
|
|
def _default(cls, state: ConnectionState) -> Self: |
|
|
def _default(cls, state: ConnectionState) -> Self: |
|
|
"""Creates a blank :class:`PrimaryGuild`""" |
|
|
|
|
|
payload: PrimaryGuildPayload = {"identity_guild_id": None, "identity_enabled": False, "tag": None, "badge": None} |
|
|
payload: PrimaryGuildPayload = {"identity_guild_id": None, "identity_enabled": False, "tag": None, "badge": None} |
|
|
return cls(state=state, data=payload) |
|
|
return cls(state=state, data=payload) |
|
|
|
|
|
|
|
|
def __repr__(self) -> str: |
|
|
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}>' |
|
|