const { Command } = require('discord.js-commando');

module.exports = class JoinCommand extends Command {
    constructor(client) {
        super(client, {
            name: 'join',
            aliases: ['join-channel', 'channel', 'voice'],
            group: 'music',
            memberName: 'join',
            description: 'Joins user active voice channel',
            examples: ['join'],
            guildOnly: true,
            throttling: {
                usages: 2,
                duration: 5
            },
            clientPermissions: ['CONNECT'],
            userPermissions: ['CONNECT'],
        });

    }

    /**
     * @param msg
     * @returns {Promise.<Message|Message[]>}
     */
    async run(msg) {
        try {
            let user = msg.member;
            if (!user.voiceChannel) {
                return (await msg.say('You must join voice channel first before using this command')).delete(1200);
            } else {
                if (user.voiceChannel.joinable) {
                    user.voiceChannel.join().then(async (connection) => (await msg.say(`Joined Voice Channel - \`${connection.channel.name}\``)).delete(12000));
                }
                else {
                    return msg.say(`I can't join channel ${user.voiceChannel.name}. Missing permissions.`)
                }
            }
        } catch (e) {
            console.log(e);
            return msg.say('Something went horribly wrong! Please try again later.')
        }
    }
};
@@ -935,27 +935,30 @@
       %7D 
-else %7B%0A
+%0A        
     
+%0A
         
@@ -991,28 +991,24 @@
 joinable) %7B%0A
-    
             
@@ -1160,33 +1160,39 @@
                 
-%7D
+return;
 %0A               
@@ -1192,27 +1192,24 @@
     
+%7D%0A
     
-else %7B%0A
+  
         
     
@@ -1196,32 +1196,33 @@
 %7D%0A              
+%0A
             retu
@@ -1308,40 +1308,8 @@
 .%60)%0A
-                %7D%0A            %7D%0A
     
@@ -1457,8 +1457,9 @@
     %7D%0A%7D;
+%0A

Update join.js