diff options
| author | Rapptz <[email protected]> | 2020-09-15 02:23:38 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 03:21:21 -0400 |
| commit | 213f55ffc7eb77557050234953f7baaa83f63bb2 (patch) | |
| tree | 061d982b745c75b1073786afa805ce84ded4a929 | |
| parent | Fix up wording in MemberCacheFlags exception (diff) | |
| download | discord.py-213f55ffc7eb77557050234953f7baaa83f63bb2.tar.xz discord.py-213f55ffc7eb77557050234953f7baaa83f63bb2.zip | |
Disable voice cache in weird intent configurations.
| -rw-r--r-- | discord/flags.py | 3 |
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): |