diff options
| author | Rapptz <[email protected]> | 2020-04-16 23:30:59 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-04-16 23:30:59 -0400 |
| commit | 9f47d7f71c5f42d5f1957cdb53c76841c45327a6 (patch) | |
| tree | ae3fb12334798f6fbcfbd47e3f6a2e178cb8eda4 | |
| parent | [tasks] Replace stack-based implementation with a cleaner one. (diff) | |
| download | discord.py-9f47d7f71c5f42d5f1957cdb53c76841c45327a6.tar.xz discord.py-9f47d7f71c5f42d5f1957cdb53c76841c45327a6.zip | |
Fix cases where member_count is equal to 0
Fixes #4008, #4005
| -rw-r--r-- | discord/guild.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/guild.py b/discord/guild.py index 71ca954d..204d617e 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -257,7 +257,7 @@ class Guild(Hashable): # according to Stan, this is always available even if the guild is unavailable # I don't have this guarantee when someone updates the guild. member_count = guild.get('member_count', None) - if member_count: + if member_count is not None: self._member_count = member_count self.name = guild.get('name') |