feat(commands/voice/queue): add --next
This commit is contained in:
parent
e540b266c7
commit
19c7bc477f
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user