diff --git a/litecord/gateway/websocket.py b/litecord/gateway/websocket.py index e999875..9a4ddee 100644 --- a/litecord/gateway/websocket.py +++ b/litecord/gateway/websocket.py @@ -637,12 +637,12 @@ class GatewayWebsocket: # if its null and null, disconnect the user from any voice # TODO: maybe just leave from DMs? idk... if channel_id is None and guild_id is None: - await self.ext.voice.leave_all(self.state.user_id) + return await self.ext.voice.leave_all(self.state.user_id) # if guild is not none but channel is, we are leaving # a guild's channel if channel_id is None: - await self.ext.voice.leave(guild_id, self.state.user_id) + return await self.ext.voice.leave(guild_id, self.state.user_id) # fetch an existing state given user and guild OR user and channel chan_type = ChannelType( diff --git a/litecord/voice/manager.py b/litecord/voice/manager.py index 8b74293..988e2e5 100644 --- a/litecord/voice/manager.py +++ b/litecord/voice/manager.py @@ -170,7 +170,7 @@ class VoiceManager: # a list of tasks to run that actually do the deletion by themselves # instead of us generating a delete. then only start running them later # on. - for sec_key_id, states in dict(self.states): + for sec_key_id, states in dict(self.states).items(): for state in states: if state.user_id != user_id: continue