Skip to content

Commit

Permalink
fix(playlist): avoid duplicating/playing first song of a playlist twi…
Browse files Browse the repository at this point in the history
…ce, at the end of the queue (#1445)

fix #1391

Co-authored-by: Erit Islami <[email protected]>
  • Loading branch information
Mirasaki and eritislami authored Sep 19, 2023
1 parent 843f4a7 commit e08be9a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions commands/playlist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ export default {
});

bot.queues.set(interaction.guild!.id, newQueue);
newQueue.songs.push(...playlist.videos);

newQueue.enqueue(playlist.videos[0]);
newQueue.enqueue(...playlist.videos);
}

let playlistEmbed = new EmbedBuilder()
Expand Down

0 comments on commit e08be9a

Please sign in to comment.