Skip to content

Commit

Permalink
Try fix skipping multiple elements from queue
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Jan 27, 2024
1 parent 5ff9ac3 commit 4ef83be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/cogs/music.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ async def skip(self, ctx: commands.Context, amount: int = 1):
if not player.queue and not player.playing:
await player._do_recommendation()
else:
player.queue = player.queue[amount - 1:]
for _ in range(amount - 1):
await player.queue.delete(0)
await player.skip()
embed = discord.Embed(title='⏭️ Skipped', color=EMBED_COLOR)
await ctx.send(embed=embed, delete_after=30)
Expand Down

0 comments on commit 4ef83be

Please sign in to comment.