aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-07-15 08:26:22 -0400
committerRapptz <[email protected]>2019-07-15 08:26:22 -0400
commit93f719aeb7cea6b116fbdf2036081b39ad10c97b (patch)
treefe832c161804e34e4c752fba6252ac9fac2a0326
parentBetter knowledge on how guild_subscriptions work now. (diff)
downloaddiscord.py-93f719aeb7cea6b116fbdf2036081b39ad10c97b.tar.xz
discord.py-93f719aeb7cea6b116fbdf2036081b39ad10c97b.zip
Proper boolean check for caching members.
-rw-r--r--discord/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index 1fefa800..9137da08 100644
--- a/discord/state.py
+++ b/discord/state.py
@@ -73,7 +73,7 @@ class ConnectionState:
self.heartbeat_timeout = options.get('heartbeat_timeout', 60.0)
self.guild_subscriptions = options.get('guild_subscriptions', True)
# Only disable cache if both fetch_offline and guild_subscriptions are off.
- self._cache_members = not (self._fetch_offline or self.guild_subscriptions)
+ self._cache_members = (self._fetch_offline or self.guild_subscriptions)
self._listeners = []
activity = options.get('activity', None)