From 07ca78e1bca90cb792773915b8f1f50a2b90a11b Mon Sep 17 00:00:00 2001 From: Lukas Blacha Date: Wed, 8 Feb 2023 18:54:39 +0100 Subject: [PATCH] Added auto-disconnect feature --- Music-Bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Music-Bot.py b/Music-Bot.py index 54f3cc9..bd2a478 100644 --- a/Music-Bot.py +++ b/Music-Bot.py @@ -208,7 +208,7 @@ else: while ctx.voice_client.is_playing(): asyncio.sleep(1) else: - ctx.voice_client.disconnect() + await ctx.voice_client.disconnect() @bot.slash_command(name="pause", description="Pauses the playback")