diff --git a/errornocord/commands/voice/channel.py b/errornocord/commands/voice/channel.py index eee460b..13c0782 100644 --- a/errornocord/commands/voice/channel.py +++ b/errornocord/commands/voice/channel.py @@ -1,4 +1,5 @@ from ... import utils +from ...state import players from .utils import command_allowed @@ -19,5 +20,8 @@ async def leave(message): if not command_allowed(message): return + if message.guild.id in players: + del players[message.guild.id] await message.guild.voice_client.disconnect() + await utils.add_check_reaction(message)