title: Ban discord v13 send dm
body: <p>Good evening I made my bot in v13 but I can't manage to make my bot send a message in dm before banning the person I want but without success so I come to ask for help here is the code if you want. :</p>
  <pre><code>const discord = module.require(&quot;discord.js&quot;);
  
  module.exports = {
    name: &quot;ban&quot;,
    category: &quot;moderation&quot;,
    description: &quot;Ban anyone with one shot whithout knowing anyone xD&quot;,
    usage: &quot;ban &lt;@user&gt; &lt;reason&gt;&quot;,
    userPerms: [&quot;BAN_MEMBERS&quot;],
    botPerms: [&quot;EMBED_LINKS&quot;, &quot;BAN_MEMBERS&quot;],
    run: async (client, message, args) =&gt; {
      let reason = args.slice(1).join(&quot; &quot;);
      if (!reason) reason = &quot;Unspecified&quot;;
  
      const target = message.mentions.members.first() || message.guild.users.cache.get(args[0]);
  
      if (!target) {
        return message.channel.send(
          `**${message.author.username}**, Please mention the person who you want to ban.`
        );
      }
  
      if (target.id === message.author.id) {
        return message.channel.send(
          `**${message.author.username}**, You can not ban yourself!`
        );
      }
      if (target.id === message.guild.ownerId) {
        return message.channel.send(&quot;You cannot Ban The Server Owner&quot;);
      }
  
      let embed = new discord.MessageEmbed()
        .setTitle(&quot;Action : Ban&quot;)
        .setDescription(`Banned ${target} (${target.id})\nReason: ${reason}`)
        .setColor(&quot;#ff2050&quot;)
        .setThumbnail(target.avatarURL)
        .setFooter(`Banned by ${message.author.tag}`);
  
      await message.guild.bans.create(target, {
        reason: reason
      }).then(() =&gt; {
          message.channel.send({ embeds: [embed] });
        });
    },
  };
  </code></pre>