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