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
This commit is contained in:
Rapptz
2020-11-23 05:24:13 -05:00
parent 344cb96c5d
commit 7a3a571e0a
2 changed files with 10 additions and 0 deletions

View File

@ -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.