This commit is contained in:
Loïc Bersier 2018-09-08 00:36:47 +02:00
parent 9309c76b9d
commit 64477560fd

View file

@ -20,7 +20,7 @@ module.exports = class MusicCommand extends Command {
run(message, { ytblink }) {
const { voiceChannel } = message.member;
if (ytblink == 'stop') {
if (!voiceChannel && ytblink == 'stop') {
voiceChannel.leave()
} else
if (!voiceChannel) {