diff --git a/commands/fun/music.js b/commands/fun/music.js index 73effbe5..7133a39f 100644 --- a/commands/fun/music.js +++ b/commands/fun/music.js @@ -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!'); }