From 0b861cc2caaab3ec19ecd3fc6d38d497621be1b4 Mon Sep 17 00:00:00 2001 From: KGT1 Date: Tue, 6 Oct 2020 00:41:04 +0200 Subject: [PATCH] fix repeat mode --- src/playbackmanager.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playbackmanager.js b/src/playbackmanager.js index 1379983..f22bba5 100644 --- a/src/playbackmanager.js +++ b/src/playbackmanager.js @@ -54,7 +54,7 @@ function startPlaying (voiceconnection = discordclientmanager.getDiscordClient() getAudioDispatcher().on("finish", () => { if(isRepeat){ - startPlaying(voiceconnection,itemIDPlaylist,currentPlayingPlaylistIndex,0) + startPlaying(voiceconnection,undefined,currentPlayingPlaylistIndex,0) }else{ if (currentPlayingPlaylist.length < playlistIndex) { if (disconnectOnFinish) { @@ -63,7 +63,7 @@ function startPlaying (voiceconnection = discordclientmanager.getDiscordClient() stop(undefined, currentPlayingPlaylist[playlistIndex - 1]); } } else { - startPlaying(voiceconnection, itemIDPlaylist, currentPlayingPlaylistIndex + 1, 0); + startPlaying(voiceconnection, undefined, currentPlayingPlaylistIndex + 1, 0); }} }); }