fix leave on wrong song

This commit is contained in:
KGT1 2020-09-23 17:08:38 +02:00
parent 212b9f658b
commit f905d65973

View File

@ -106,7 +106,7 @@ async function playThis (message) {
.setTimestamp() .setTimestamp()
.setDescription("<:x:757935515445231651> " + e); .setDescription("<:x:757935515445231651> " + e);
message.channel.send(noSong); message.channel.send(noSong);
playbackmanager.stop(discordClient.user.client.voice.connections.first()); playbackmanager.stop(isSummendByPlay?discordClient.user.client.voice.connections.first():undefined);
return; return;
} }
} }