From e4513f70add20edef54b4ab716d8df7932d11a0d Mon Sep 17 00:00:00 2001 From: Nadir Chowdhury Date: Sat, 17 Apr 2021 23:56:51 +0100 Subject: [PATCH] `activities` is no longer nullable --- discord/member.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/member.py b/discord/member.py index b6f98282f..4eeebcba8 100644 --- a/discord/member.py +++ b/discord/member.py @@ -225,7 +225,7 @@ class Member(discord.abc.Messageable, _BaseUser): self._client_status = { None: 'offline' } - self.activities = tuple(map(create_activity, data.get('activities', []))) + self.activities = [] self.nick = data.get('nick', None) self.pending = data.get('pending', False) @@ -312,7 +312,7 @@ class Member(discord.abc.Messageable, _BaseUser): self._update_roles(data) def _presence_update(self, data, user): - self.activities = tuple(map(create_activity, data.get('activities', []))) + self.activities = tuple(map(create_activity, data['activities'])) self._client_status = { sys.intern(key): sys.intern(value) for key, value in data.get('client_status', {}).items()