From f905d65973e16a4617e0c4b5f392fcb2cd3b5f08 Mon Sep 17 00:00:00 2001 From: KGT1 Date: Wed, 23 Sep 2020 17:08:38 +0200 Subject: [PATCH] fix leave on wrong song --- src/messagehandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messagehandler.js b/src/messagehandler.js index b588934..7d0bb0d 100644 --- a/src/messagehandler.js +++ b/src/messagehandler.js @@ -106,7 +106,7 @@ async function playThis (message) { .setTimestamp() .setDescription("<:x:757935515445231651> " + e); message.channel.send(noSong); - playbackmanager.stop(discordClient.user.client.voice.connections.first()); + playbackmanager.stop(isSummendByPlay?discordClient.user.client.voice.connections.first():undefined); return; } }