fix(commands/voice/queue): only allow first when queue is actually empty

This commit is contained in:
Ryan 2025-01-07 12:37:02 -05:00
parent 655b552c10
commit 930169346b
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -461,7 +461,7 @@ def play_next(message, once=False, first=False):
) )
embed.set_image(queued.player.thumbnail_url) embed.set_image(queued.player.thumbnail_url)
if first: if first and len(players[message.guild.id].queue) == 0:
client.loop.create_task(utils.reply(message, embed=embed)) client.loop.create_task(utils.reply(message, embed=embed))
else: else:
client.loop.create_task(utils.channel_send(message, embed=embed)) client.loop.create_task(utils.channel_send(message, embed=embed))