From 4929a17d2b3f8b8c387c4bda13928a665dd811ad Mon Sep 17 00:00:00 2001 From: blord0 Date: Wed, 18 Jun 2025 21:29:09 +0100 Subject: [PATCH] Mark identity_enabled and _badge as optional --- discord/primary_guild.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/discord/primary_guild.py b/discord/primary_guild.py index fd14381e2..dec682639 100644 --- a/discord/primary_guild.py +++ b/discord/primary_guild.py @@ -37,7 +37,7 @@ if TYPE_CHECKING: class PrimaryGuild: """Represents the primary guild identity of a :class:`User` - + Attributes ----------- id: Optional[:class:`int`] @@ -46,7 +46,7 @@ class PrimaryGuild: The guild's tag. identity_enabled: Optional[:class:`bool`] Whether the user has their primary guild publicly displayed. If ``None``, the user has a public guild but has not reaffirmed the guild identity after a change - + .. note:: Users can have their primary guild publicly displayed while still having an :attr:`id` of ``None``. Be careful when checking this attribute! @@ -56,9 +56,9 @@ class PrimaryGuild: if TYPE_CHECKING: id: Optional[int] - identity_enabled: bool + identity_enabled: Optional[bool] tag: Optional[str] - _badge: str + _badge: Optional[str] _state: ConnectionState def __init__(self, *, state, data: PrimaryGuildPayload) -> None: