From ec23397bc587e4064faf31fa06b9c5144c2b3734 Mon Sep 17 00:00:00 2001 From: Ev-1 <33662061+Ev-1@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:06:34 +0100 Subject: [PATCH] Fix reconnect command --- musicbot/cogs/music/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/musicbot/cogs/music/__init__.py b/musicbot/cogs/music/__init__.py index f0aad2d..2161b13 100644 --- a/musicbot/cogs/music/__init__.py +++ b/musicbot/cogs/music/__init__.py @@ -515,7 +515,7 @@ async def _reconnect(self, ctx, force: bool = False): async def inner_reconnect(): await player.stop() if ctx.voice_client: - await ctx.voice_client.disconnect(force) + await ctx.voice_client.disconnect(force=force) await asyncio.sleep(1) # Pretend stuff is happening/give everything some time to reset. channel = ctx.guild.get_channel(current_channel) await channel.connect(cls=BasicVoiceClient)