aboutsummaryrefslogtreecommitdiff
path: root/discord
diff options
context:
space:
mode:
authorRapptz <[email protected]>2021-07-31 20:22:51 -0400
committerRapptz <[email protected]>2021-07-31 20:22:51 -0400
commit2de0398d661ab145277858717598027091628545 (patch)
tree43bfd9099a5571b9e0288f3ee4f772da0615530e /discord
parentAdd on_socket_event_type event (diff)
downloaddiscord.py-2de0398d661ab145277858717598027091628545.tar.xz
discord.py-2de0398d661ab145277858717598027091628545.zip
Cast removed thread member IDs to int
Diffstat (limited to 'discord')
-rw-r--r--discord/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/state.py b/discord/state.py
index 3f577329..ca33df3d 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: