1
0
Fork 0
Loïc Bersier 6 years ago
parent 9309c76b9d
commit 64477560fd

@ -20,9 +20,9 @@ module.exports = class MusicCommand extends Command {
run(message, { ytblink }) {
const { voiceChannel } = message.member;
if (ytblink == 'stop') {
if (!voiceChannel && ytblink == 'stop') {
voiceChannel.leave()
} else
} else
if (!voiceChannel) {
return message.reply('please join a voice channel first!');
}

Loading…
Cancel
Save