Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const Discord = require ("discord.js");
- const commando = require ('discord.js-commando');
- module.exports.run = async(client, message, args) =>{
- if(!message.member.voiceChannel) return message.channel.send("please connect to a voice channel");
- if(!message.member.guild.me.voiceChannel) return message.channel.send("Sorry the bot isnt conntected to the voice chat");
- if(message.guild.me.voiceChannelID !==message.member.voiceChannelID) return message.channel.send("Sorry you aint in the same channel");
- message.guild.me.voiceChannel.leave();
- message.channel.send("left");
- }
- module.exports.help = {
- name:"stop"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement