Remove autoplay when stop
command is run
This commit is contained in:
parent
760aac506f
commit
663cc250c9
@ -17,6 +17,7 @@ class Stop(commands.Cog):
|
|||||||
"Disconnects the bot from the voice channel and clears the queue"
|
"Disconnects the bot from the voice channel and clears the queue"
|
||||||
player = self.bot.lavalink.player_manager.get(interaction.guild.id)
|
player = self.bot.lavalink.player_manager.get(interaction.guild.id)
|
||||||
|
|
||||||
|
self.bot.autoplay.remove(interaction.guild.id)
|
||||||
player.queue.clear()
|
player.queue.clear()
|
||||||
await player.stop()
|
await player.stop()
|
||||||
await interaction.guild.voice_client.disconnect(force=True)
|
await interaction.guild.voice_client.disconnect(force=True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user