From d7b41e0a21721407e0941a2fe8ebffc5f78caa55 Mon Sep 17 00:00:00 2001 From: Lucas <13612932+LucasCoderT@users.noreply.github.com> Date: Sat, 16 Jan 2021 22:09:15 -0700 Subject: [PATCH] Fix User public flags not updating --- discord/member.py | 6 +++--- discord/user.py | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/discord/member.py b/discord/member.py index 38c2d0df3..ec9e4e4e9 100644 --- a/discord/member.py +++ b/discord/member.py @@ -290,12 +290,12 @@ class Member(discord.abc.Messageable, _BaseUser): def _update_inner_user(self, user): u = self._user - original = (u.name, u.avatar, u.discriminator) + original = (u.name, u.avatar, u.discriminator, u._public_flags) # These keys seem to always be available - modified = (user['username'], user['avatar'], user['discriminator']) + modified = (user['username'], user['avatar'], user['discriminator'], user.get('public_flags', 0)) if original != modified: to_return = User._copy(self._user) - u.name, u.avatar, u.discriminator = modified + u.name, u.avatar, u.discriminator, u._public_flags = modified # Signal to dispatch on_user_update return to_return, u diff --git a/discord/user.py b/discord/user.py index 53cf81dff..dfdbb56ea 100644 --- a/discord/user.py +++ b/discord/user.py @@ -120,6 +120,7 @@ class BaseUser(_BaseUser): self.avatar = user.avatar self.bot = user.bot self._state = user._state + self._public_flags = user._public_flags return self