From 45c729b167509deb5e389a7812d0ae8f4cbc4e72 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Mon, 10 Oct 2016 20:09:06 -0400 Subject: Switch IDs to use int instead of str --- discord/calls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'discord/calls.py') diff --git a/discord/calls.py b/discord/calls.py index 6a221e50..94c55a14 100644 --- a/discord/calls.py +++ b/discord/calls.py @@ -112,7 +112,7 @@ class GroupCall: self.ringing = list(filter(None, map(lambda i: lookup.get(i), kwargs.get('ringing', [])))) def _update_voice_state(self, data): - user_id = data['user_id'] + user_id = int(data['user_id']) # left the voice channel? if data['channel_id'] is None: self._voice_states.pop(user_id, None) -- cgit v1.2.3