From 64477560fdbf74e92e45291aa11e50523a1369bb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= <loic.bersier1@gmail.com>
Date: Sat, 8 Sep 2018 00:36:47 +0200
Subject: [PATCH]

---
 commands/fun/music.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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!');
         }