diff --git a/discord/state.py b/discord/state.py index 6425a1dfa..3f5773296 100644 --- a/discord/state.py +++ b/discord/state.py @@ -864,7 +864,8 @@ class ConnectionState: for member_id in removed_member_ids: if member_id != self_id: member = thread._pop_member(member_id) - self.dispatch('thread_member_remove', member) + if member is not None: + self.dispatch('thread_member_remove', member) else: self.dispatch('thread_remove', thread)