feat(commands/voice/queue): add --next

This commit is contained in:
Ryan 2025-01-05 16:50:32 -05:00
parent e540b266c7
commit 19c7bc477f
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -50,6 +50,11 @@ async def queue_or_play(message):
action="store_true",
help="play the specified song immediately",
)
parser.add_argument(
"--next",
action="store_true",
help="play the specified song next",
)
parser.add_argument(
"-t",
"--remove-title",
@ -138,7 +143,7 @@ async def queue_or_play(message):
queued = youtubedl.QueuedSong(player, message.author.id)
if args.now:
if args.now or args.next:
players[message.guild.id].queue_add_front(queued)
else:
players[message.guild.id].queue_add(queued)