Skip to content

Commit

Permalink
Fix: #30
Browse files Browse the repository at this point in the history
  • Loading branch information
TAG-Epic committed Aug 28, 2021
1 parent 8711800 commit 9b0c1c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nextcord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,16 +870,16 @@ def discovery_splash(self) -> Optional[Asset]:
return Asset._from_guild_image(self._state, self.id, self._discovery_splash, path='discovery-splashes')

@property
def member_count(self) -> int:
""":class:`int`: Returns the true member count regardless of it being loaded fully or not.
def member_count(self) -> Optional[int]:
"""Optional[:class:`int`]: Returns the true member count, if availible.
.. warning::
Due to a Discord limitation, in order for this attribute to remain up-to-date and
accurate, it requires :attr:`Intents.members` to be specified.
"""
return self._member_count
return getattr(self, "_member_count", None)

@property
def chunked(self) -> bool:
Expand Down

0 comments on commit 9b0c1c8

Please sign in to comment.