diff --git a/cogs/music.py b/cogs/music.py index 9eaf027..b19b5af 100644 --- a/cogs/music.py +++ b/cogs/music.py @@ -327,7 +327,7 @@ class Music: await ctx.send("Sorry, but I couldn't connect right now! Please try again later") return False except discord.ClientException: - if state.voice: + if channel.guild.voice_client: await state.voice.disconnect(force=True) log.warning("Force cleared voice connection on guild {} after being stuck between connected/not connected".format(ctx.message.guild.id)) await channel.connect()