|
@ -272,17 +272,20 @@ class Member(discord.abc.Messageable, _BaseUser): |
|
|
self._client_status[None] = data['status'] |
|
|
self._client_status[None] = data['status'] |
|
|
|
|
|
|
|
|
if len(user) > 1: |
|
|
if len(user) > 1: |
|
|
u = self._user |
|
|
return self._update_inner_user(user) |
|
|
original = (u.name, u.avatar, u.discriminator) |
|
|
|
|
|
# These keys seem to always be available |
|
|
|
|
|
modified = (user['username'], user['avatar'], user['discriminator']) |
|
|
|
|
|
if original != modified: |
|
|
|
|
|
to_return = User._copy(self._user) |
|
|
|
|
|
u.name, u.avatar, u.discriminator = modified |
|
|
|
|
|
# Signal to dispatch on_user_update |
|
|
|
|
|
return to_return, u |
|
|
|
|
|
return False |
|
|
return False |
|
|
|
|
|
|
|
|
|
|
|
def _update_inner_user(self, user): |
|
|
|
|
|
u = self._user |
|
|
|
|
|
original = (u.name, u.avatar, u.discriminator) |
|
|
|
|
|
# These keys seem to always be available |
|
|
|
|
|
modified = (user['username'], user['avatar'], user['discriminator']) |
|
|
|
|
|
if original != modified: |
|
|
|
|
|
to_return = User._copy(self._user) |
|
|
|
|
|
u.name, u.avatar, u.discriminator = modified |
|
|
|
|
|
# Signal to dispatch on_user_update |
|
|
|
|
|
return to_return, u |
|
|
|
|
|
|
|
|
@property |
|
|
@property |
|
|
def status(self): |
|
|
def status(self): |
|
|
""":class:`Status`: The member's overall status. If the value is unknown, then it will be a :class:`str` instead.""" |
|
|
""":class:`Status`: The member's overall status. If the value is unknown, then it will be a :class:`str` instead.""" |
|
|