VoncheyK / Von_

0 stars 0 forks source link

Cannot seam to figure out how to leave the voicechat :( #2

Open VoncheyK opened 4 years ago

VoncheyK commented 4 years ago

_if (cmd === ‘call’) { const JL = args.join(“ “)

if (JL === ‘join’) {

const voiceChannel = msg.member.voice.channel;

    if (!voiceChannel) {
        return msg.reply(‘please join a voice channel first!’);
    }
    voiceChannel.join().then(() => {

if (cmd === ‘play’) { const link = args.join(“ “)

}

}) } else if (JL === ‘leave’) { const voiceChannel = msg.member.voice.channel;

if (!voiceChannel) {

msg.reply(‘please join a voice channel first!’)

  msg.guild.me.voiceChannel.leave()

}

} else {

msg.reply(“THATS NOT A CALL FEATURE!”)

} }_