diff --git a/cogs/audio.py b/cogs/audio.py index b55ab1b8e..0e5b3fa66 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -2160,6 +2160,10 @@ class Audio: log.debug("just got unmuted, resuming") vc.audio_player.resume() + def __unload(self): + for vc in self.bot.voice_clients: + self.bot.loop.create_task(vc.disconnect()) + def check_folders(): folders = ("data/audio", "data/audio/cache", "data/audio/playlists",