Proper boolean check for caching members.
This commit is contained in:
parent
f13c1be171
commit
93f719aeb7
@ -73,7 +73,7 @@ class ConnectionState:
|
|||||||
self.heartbeat_timeout = options.get('heartbeat_timeout', 60.0)
|
self.heartbeat_timeout = options.get('heartbeat_timeout', 60.0)
|
||||||
self.guild_subscriptions = options.get('guild_subscriptions', True)
|
self.guild_subscriptions = options.get('guild_subscriptions', True)
|
||||||
# Only disable cache if both fetch_offline and guild_subscriptions are off.
|
# 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 = []
|
self._listeners = []
|
||||||
|
|
||||||
activity = options.get('activity', None)
|
activity = options.get('activity', None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user