diff options
| author | Rapptz <[email protected]> | 2018-12-14 20:51:04 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2018-12-14 20:57:21 -0500 |
| commit | c7396dc8acb1270ad6fbdb0607ca2d03c7ddb3a7 (patch) | |
| tree | 873bb321b025006bf112563420dfc747becd4bd3 /discord/guild.py | |
| parent | Add support for spoiler attachments. (diff) | |
| download | discord.py-c7396dc8acb1270ad6fbdb0607ca2d03c7ddb3a7.tar.xz discord.py-c7396dc8acb1270ad6fbdb0607ca2d03c7ddb3a7.zip | |
Add support for mobile indicators and per-client statuses.
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/guild.py b/discord/guild.py index 37d4853a..cf07697e 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -244,12 +244,12 @@ class Guild(Hashable): except KeyError: pass + empty_tuple = tuple() for presence in data.get('presences', []): user_id = int(presence['user']['id']) member = self.get_member(user_id) if member is not None: - member.status = try_enum(Status, presence['status']) - member.activities = tuple(map(create_activity, presence.get('activities', []))) + member._presence_update(presence, empty_tuple) if 'channels' in data: channels = data['channels'] |