title: Invalid Form Body in Discord.js ban command
body: <p>So, i have been trying to make a ban command. I basically used the same system on a kick command, but here it didnt work and just gave me an error. I am confused since in the error it doesnt display a line of code or something.<br />
  My Command / Code:</p>
  <pre class="lang-js prettyprint-override"><code>module.exports = {
      name: 'ban',
      description: &quot;Ban Command.&quot;,
      execute(msg, args){
      const Discord = require('discord.js')
      const Embeds = require('./../embed')
      let perms = msg.member.permissions  
      let has_kick = perms.has(&quot;BAN_MEMBERS&quot;)
      if (has_kick === true) {
          const toban = msg.mentions.members.first()
          delete args[0]
          var string = args.join(' ')
          Embeds.error(toban, `You have been banned from ${msg.guild.name} by the user ${msg.author} with the reason ${string}`)
          setTimeout(function(){ 
              try {
              toban.ban(`was banned by ${msg.author} for: ${string}`)
              Embeds.kicked(msg.channel, `${toban} has been banned by ${msg.author} from the server with the following reason: ${string}`, `Banned User from the server`)
              } catch {
                  Embeds.error(msg.channel, `I dont have permissions to ban ${toban} `, &quot;Error&quot;)
              }
           }, 1000); 
      } else {
          const toban = msg.mentions.members.first()
          Embeds.error(msg.channel, `You dont have permissions to Ban ${toban} `, &quot;Error&quot;)
      }
  }
  }
  </code></pre>
  <p>The Error:</p>
  <pre><code>(node:13896) UnhandledPromiseRejectionWarning: DiscordAPIError: Invalid Form Body
  DICT_TYPE_CONVERT: Only dictionaries may be used in a DictType
  </code></pre>