Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion discord/primary_guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
DEALINGS IN THE SOFTWARE.
"""

from functools import cached_property
from typing import TYPE_CHECKING

if TYPE_CHECKING:
Expand Down Expand Up @@ -61,7 +62,7 @@ def __init__(self, data: PrimaryGuildPayload, state: "ConnectionState") -> None:
def __repr__(self) -> str:
return f"<PrimaryGuild identity_guild_id={self.identity_guild_id} identity_enabled={self.identity_enabled} tag={self.tag}>"

@property
@cached_property
def badge(self) -> Asset | None:
"""Returns the badge asset, if available.

Expand Down
Loading