aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2020-09-15 02:23:38 -0400
committerRapptz <[email protected]>2020-09-23 03:21:21 -0400
commit213f55ffc7eb77557050234953f7baaa83f63bb2 (patch)
tree061d982b745c75b1073786afa805ce84ded4a929
parentFix up wording in MemberCacheFlags exception (diff)
downloaddiscord.py-213f55ffc7eb77557050234953f7baaa83f63bb2.tar.xz
discord.py-213f55ffc7eb77557050234953f7baaa83f63bb2.zip
Disable voice cache in weird intent configurations.
-rw-r--r--discord/flags.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/discord/flags.py b/discord/flags.py
index 1487a231..95445517 100644
--- a/discord/flags.py
+++ b/discord/flags.py
@@ -778,6 +778,9 @@ class MemberCacheFlags(BaseFlags):
if intents.voice_states:
self.voice = True
+ if not self.joined and self.online and self.voice:
+ self.voice = False
+
return self
def _verify_intents(self, intents):