title: Discord.js TypeError: member.kick is not a function
body: <p>The title says it all... I have a problem with my kick command. I don't know why. Never seen anything like this. I've tried reinstalling <code>Discord.js</code> but I had no luck.</p>
  <p><strong>Code:</strong></p>
  <pre><code>const {
      MessageEmbed
  } = require('discord.js');
  
  module.exports = {
      name: &quot;kick&quot;,
      aliases: [],
      run: async (message, args, client) =&gt; {
  
  
  
          if (!message.member.hasPermission('KICK_MEMBERS')) {
              message.channel.send(&quot;You don't have permission to use that command.&quot;);
  
            } else {
          
              let member = message.mentions.users.first() || client.users.cache.get(args[0]);
  
         
                  } else {
                      await member.kick();
                      console.log(`${message.author.username} kicked ${member} from ${message.guild.name} for ${reason}. Rest In Peace...`);
                      const embed = new MessageEmbed()
                         // kick successful embed
                      });
                  }
  
              }
  
          }
      }
  }
  </code></pre>
  <p>All the rest were error embeds.</p>