diff options
| author | Rapptz <[email protected]> | 2021-07-31 20:22:51 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-07-31 20:22:51 -0400 |
| commit | 2de0398d661ab145277858717598027091628545 (patch) | |
| tree | 43bfd9099a5571b9e0288f3ee4f772da0615530e /discord | |
| parent | Add on_socket_event_type event (diff) | |
| download | discord.py-2de0398d661ab145277858717598027091628545.tar.xz discord.py-2de0398d661ab145277858717598027091628545.zip | |
Cast removed thread member IDs to int
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/state.py | 2 |
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: |