Browse Source

FIx on_thread_member_remove passing in None

pull/7324/head
Rapptz 4 years ago
parent
commit
2cb5ce981e
  1. 3
      discord/state.py

3
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)

Loading…
Cancel
Save