diff options
author | Parker <contact@pkrm.dev> | 2024-04-14 22:22:45 -0500 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-04-14 22:22:45 -0500 |
commit | 663cc250c9105f6f8d9ef50d5f8629621a766d0b (patch) | |
tree | 7d87bd7b2ac368f057bcd4c102ea613e8afe26fd | |
parent | 760aac506f65f3d4c6765f545ad6444bd086b859 (diff) |
Remove autoplay when `stop` command is run
-rw-r--r-- | code/cogs/stop.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/code/cogs/stop.py b/code/cogs/stop.py index 795182f..2bb52aa 100644 --- a/code/cogs/stop.py +++ b/code/cogs/stop.py @@ -17,6 +17,7 @@ class Stop(commands.Cog): "Disconnects the bot from the voice channel and clears the queue" player = self.bot.lavalink.player_manager.get(interaction.guild.id) + self.bot.autoplay.remove(interaction.guild.id) player.queue.clear() await player.stop() await interaction.guild.voice_client.disconnect(force=True) |