From 19c7bc477fca9dfa63c871f2c03a4635438487fd Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Sun, 5 Jan 2025 16:50:32 -0500 Subject: [PATCH] feat(commands/voice/queue): add --next --- commands/voice.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/commands/voice.py b/commands/voice.py index 1e18f8e..84658cd 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -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)