diff options
| author | Rapptz <[email protected]> | 2020-09-21 03:54:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:22 -0400 |
| commit | 9dd4dc78c31b4763e309579474fcd72f6bb77f77 (patch) | |
| tree | 1becf3095aca6dc4da004e3a0c696e01647a72b0 /discord | |
| parent | Fix presence intent docstring (diff) | |
| download | discord.py-9dd4dc78c31b4763e309579474fcd72f6bb77f77.tar.xz discord.py-9dd4dc78c31b4763e309579474fcd72f6bb77f77.zip | |
Mention potential Guild.member_count accuracy issues
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/guild.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py index 4247f105..21dd1262 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -706,7 +706,14 @@ class Guild(Hashable): @property def member_count(self): - """:class:`int`: Returns the true member count regardless of it being loaded fully or not.""" + """:class:`int`: Returns the true member count regardless of it being loaded fully or not. + + .. warning:: + + Due to a Discord limitation, in order for this attribute to remain up-to-date and + accurate, it requires :attr:`Intent.members` to be specified. + + """ return self._member_count @property |