diff options
| author | Rapptz <[email protected]> | 2016-04-12 18:19:02 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-04-12 18:19:02 -0400 |
| commit | 7eb9a7dfdcf5274553c5a600edcac36f7b7255ce (patch) | |
| tree | ec9df99cc4d68284979b839c3aa5f17141804294 | |
| parent | Yield from parser coroutine instead of making it a task. (diff) | |
| download | discord.py-7eb9a7dfdcf5274553c5a600edcac36f7b7255ce.tar.xz discord.py-7eb9a7dfdcf5274553c5a600edcac36f7b7255ce.zip | |
Handle bot tag updates in GUILD_MEMBER_UPDATE.
| -rw-r--r-- | discord/state.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discord/state.py b/discord/state.py index e2ba034e..ac6ea064 100644 --- a/discord/state.py +++ b/discord/state.py @@ -314,7 +314,9 @@ class ConnectionState: member.name = user['username'] member.discriminator = user['discriminator'] member.avatar = user['avatar'] + member.bot = user.get('bot', False) member.roles = [server.default_role] + # update the roles for role in server.roles: if role.id in data['roles']: |