fix(commands/voice/queue): only allow first
when queue is actually empty
This commit is contained in:
parent
655b552c10
commit
930169346b
@ -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))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user