From 93f719aeb7cea6b116fbdf2036081b39ad10c97b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 15 Jul 2019 08:26:22 -0400 Subject: [PATCH] Proper boolean check for caching members. --- discord/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/state.py b/discord/state.py index 1fefa8008..9137da083 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)