bug: play now probably not working with playlist #192

Open
opened 2024-09-30 15:42:16 +02:00 by Anri · 1 comment
Owner

if (result.playlist) {
queue.addTrack(result.playlist.tracks);
title = result.playlist.title;
} else {
const track = result.tracks[0];
if (
interaction.options.getSubcommand() ===
loc_default?.get(`c_${filename}_sub2_name`)?.toLowerCase()
) {
queue.insertTrack(track, 0);
} else {
queue.addTrack(track);
}

https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/src/commit/f9cc154b040d46d7943f66d78a676d871c85464c/src/commands/music/play.ts#L156-L169
Anri added the
bug
label 2024-09-30 15:42:16 +02:00
Author
Owner

It just add the playlist at the end (first if-true), so play add and play now have the same behaviour on playlist

It just add the playlist at the end (first if-true), so `play add` and `play now` have the same behaviour on playlist
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: ConfrerieDuKassoulait/Botanique#192
No description provided.