Skip to content

Commit

Permalink
added slice from comment (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscuitmunch authored Nov 7, 2022
1 parent 954de04 commit 584eb37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Jukebox/EmbedBuilders/AddedToQueue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function makeSingleAddedToQueueEmbed(disc: MusicDisc, jukebox: Jukebox): EmbedBu
description += `\nChannel: ${channel}`;

// we slice to avoid information about the song that was just added
const { totalDuration, numLiveVideos } = getQueueLength(jukebox.inventory);
const { totalDuration, numLiveVideos } = getQueueLength(jukebox.inventory.slice(0,-1));

const timeTillPlay = totalDuration + getTimeTillPlaybackDone(jukebox);

Expand Down

0 comments on commit 584eb37

Please sign in to comment.