forked from Supositware/Haha-Yes
This commit is contained in:
parent
9309c76b9d
commit
64477560fd
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue