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
+6 -1
View File
@@ -1,8 +1,13 @@
module.exports = {
name: 'join',
description: 'joins a voice channel',
execute: async (message, voiceChannel, args) => {
execute: async(message, args) => {
const voiceChannel = message.member.voice.channel;
if (!voiceChannel) return message.reply('you need to join a channel!');
connection = await voiceChannel.join();
return message.channel.send('joined!');
}
};