improved basic commands

This commit is contained in:
Hazem Krimi
2020-04-29 10:46:29 +01:00
parent a300187aa4
commit 3acb006f43
3 changed files with 14 additions and 4 deletions
+7 -1
View File
@@ -1,7 +1,13 @@
module.exports = {
name: 'leave',
description: 'leaves a voice channel',
execute: async = (message, voiceChannel, args) => {
execute: async(message, args) => {
if (!message.member.voice.channel) return message.reply('you need to join a channel!');
const voiceChannel = message.member.voice.channel;
voiceChannel.leave();
return message.channel.send('left!');
}
};