title: Ban command discord.js
body: <p>this is my first topic here, well, I am creating a ban command for my bot in discord.js, and I would like to know how I would do it so that if I don't specify a reason, it will add &quot;unspecified reason&quot; and continue to ban the user for no reason!</p>
  <p>below I will leave my code for you to have a base, if possible assemble for me thank you!</p>
  <pre><code>var testCont = message.content.split(&quot; &quot;);
      var content = message.content.split(&quot; &quot;).slice(2).join(' ');
      var banned = message.mentions.users.first();
  
      if (message.mentions.users.size &lt; 1) {
          message.reply(&quot;Você deve fornecer um usuário para eu banir!&quot;);
      } 
      else if (testCont.length &lt;= 2) {
          message.reply(&quot;Por favor, forneça o motivo do banimento.&quot;);
      } 
      else if (message.guild.member(banned).bannable) {
  
        client.users.cache.get(banned.id).send({
          embed: {
              color: (client.config.discord.EMBED_COLOR),
              description: `&lt;:emoji_17:835279180992217140&gt;︙Você foi banido de **${message.guild.name}**\n&lt;:emoji_30:835278700206882846&gt;︙**Motivo:**\n \`\`\`diff\n- ${content}\`\`\`\n&lt;:emoji_30:835278700206882846&gt;︙**Banido por:** ${message.author.username}#${message.author.discriminator}`
          },
      });
  
  </code></pre>