If skip number is 1, skip normally over popping

This commit is contained in:
Parker M. 2024-05-13 15:30:11 -05:00
parent dcf49b19d3
commit e76d4442eb
No known key found for this signature in database
GPG Key ID: 95CD2E0C7E329F2A

View File

@ -36,6 +36,9 @@ class Skip(commands.Cog):
return await interaction.response.send_message(
embed=embed, ephemeral=True
)
# If the number is just 1, pass so that it can be skipped normally
elif number == 1:
pass
else:
for i in range(number - 2, -1, -1):
player.queue.pop(i)