From 2de0398d661ab145277858717598027091628545 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 31 Jul 2021 20:22:51 -0400 Subject: [PATCH] Cast removed thread member IDs to int --- discord/state.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/state.py b/discord/state.py index 3f5773296..ca33df3d0 100644 --- a/discord/state.py +++ b/discord/state.py @@ -851,7 +851,7 @@ class ConnectionState: return added_members = [ThreadMember(thread, d) for d in data.get('added_members', [])] - removed_member_ids = data.get('removed_member_ids', []) + removed_member_ids = [int(x) for x in data.get('removed_member_ids', [])] self_id = self.self_id for member in added_members: if member.id != self_id: