Open VoncheyK opened 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!”)
} }_
_if (cmd === ‘call’) { const JL = args.join(“ “)
const voiceChannel = msg.member.voice.channel;
if (cmd === ‘play’) { const link = args.join(“ “)
}
}) } else if (JL === ‘leave’) { const voiceChannel = msg.member.voice.channel;
msg.reply(‘please join a voice channel first!’)
}
} else {
msg.reply(“THATS NOT A CALL FEATURE!”)
} }_