title: Ban command discord.js v12
body: <p>I made a ban command in discord.js v12. However whenever i run the command I get an error. Here is my code:</p>
  <pre><code>const Discord = require('discord.js');
  
  module.exports = {
      name: &quot;ban&quot;,
      description: &quot;Kicks a member from the server&quot;,
  
      async run (client, message, args) {
  
          if(!message.member.hasPermission(&quot;BAN_MEMBERS&quot;)) return message.channel.send('You can\'t use that!')
          if(!message.guild.me.hasPermission(&quot;BAN_MEMBERS&quot;)) return message.channel.send('I don\'t have the right permissions.')
  
          const member = message.mentions.members.first() || message.guild.members.cache.get(args[0]);
  
          if(!args[0]) return message.channel.send('Please specify a user');
  
          if(!member) return message.channel.send('Can\'t seem to find this user. Sorry \'bout that :/');
          if(!member.bannable) return message.channel.send('This user can\'t be banned. It is either because they are a mod/admin, or their highest role is higher than mine');
  
          if(member.id === message.author.id) return message.channel.send('Bruh, you can\'t ban yourself!');
  
          let reason = args.slice(1).join(&quot; &quot;);
  
          if(!reason) reason = 'Unspecified';
  
          member.ban(`${reason}`).catch(err =&gt; { 
            message.channel.send('Something went wrong')
              console.log(err)
          })
  
          const banembed = new Discord.MessageEmbed()
          .setTitle('Member Banned')
          .setThumbnail(member.user.displayAvatarURL())
          .addField('User Banned', member)
          .addField('Kicked by', message.author)
          .addField('Reason', reason)
          .setFooter('Time kicked', client.user.displayAvatarURL())
          .setTimestamp()
  
          message.channel.send(banembed);
  
  
      }
  }
  </code></pre>
  <p>As I had mentioned earlier I keep getting an error whenever I run code. Bit new to coding and I was'nt able to resolve the problem my self. Here is the error I recive:</p>
  <pre><code>Response: Internal Server Error
      at RequestHandler.execute (/home/runner/Utki-the-bot/node_modules/discord.js/src/rest/RequestHandler.js:158:11)
      at processTicksAndRejections (internal/process/task_queues.js:97:5) {
    code: 500,
    method: 'put',
    path: '/guilds/751424392420130907/bans/155149108183695360'
  }
  </code></pre>
  <p>Can you help me out? Thanks in advance!</p>