From 7a3a571e0a641aaeb061e86d8a6e851c5cd4c381 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 23 Nov 2020 05:24:13 -0500 Subject: Don't store a user cache if there's no member intent or cache is off Without a cache or member intent the user cache can get out of date with no events to update the underlying user in the member object. Ref: #6034 --- discord/flags.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'discord/flags.py') diff --git a/discord/flags.py b/discord/flags.py index 0cc106e5..cd8557a3 100644 --- a/discord/flags.py +++ b/discord/flags.py @@ -851,6 +851,10 @@ class MemberCacheFlags(BaseFlags): self.value = self.DEFAULT_VALUE return self + @property + def _empty(self): + return self.value == self.DEFAULT_VALUE + @flag_value def online(self): """:class:`bool`: Whether to cache members with a status. -- cgit v1.2.3