diff options
| author | Rapptz <[email protected]> | 2019-04-08 06:34:28 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-08 06:34:28 -0400 |
| commit | 1a9726087a022a63156c21094509370bc734a5b5 (patch) | |
| tree | 342e2f852a2f9de4828974da1f899e63244f4a85 /discord/member.py | |
| parent | Don't use an enum when unnecessary in Member._client_status (diff) | |
| download | discord.py-1a9726087a022a63156c21094509370bc734a5b5.tar.xz discord.py-1a9726087a022a63156c21094509370bc734a5b5.zip | |
GUILD_MEMBER_UPDATE no longer does actual user updates.
This had been delegated to PRESENCE_UPDATE a long time ago,
unfortunately.
Diffstat (limited to 'discord/member.py')
| -rw-r--r-- | discord/member.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/discord/member.py b/discord/member.py index b2eb9db9..b3961cf2 100644 --- a/discord/member.py +++ b/discord/member.py @@ -210,13 +210,7 @@ class Member(discord.abc.Messageable, _BaseUser): def _update_roles(self, data): self._roles = utils.SnowflakeList(map(int, data['roles'])) - def _update(self, data, user=None): - if user: - self._user.name = user['username'] - self._user.discriminator = user['discriminator'] - self._user.avatar = user['avatar'] - self._user.bot = user.get('bot', False) - + def _update(self, data): # the nickname change is optional, # if it isn't in the payload then it didn't change try: |