title: can't dm mentioned user javascript
body: <p>i'm trying to make a ban command, but it keep saying that mentionedUser.send is not a function?[console image][1]</p>
  <p>i'm not exactly sure what to do here. i read a bit and saw something about a &quot;cache&quot; system, but i have completely no idea how to use it.</p>
  <p>can anyone help?</p>
  <p>my code:</p>
  <pre><code>const { multiGetLatestMessages } = require(&quot;noblox.js&quot;);
  const Discord = require('discord.js');
  
  module.exports = {
      name: 'ban',
      description: 'ban user',
      cooldown: 5,
      permissions: 'BAN_MEMBERS',
      aliases: ['banlands', &quot;getbannednoob&quot;],
  
      async execute(message, args) {
          let reason = args.slice(1).join(&quot; &quot;);
          let mentionedMember = message.mentions.members.first
  
          if (!reason) reason = &quot;No reason given&quot;;
          if (!args[0]) return message.channel.send(&quot;at least tell me who to ban noob&quot;);
          if (!mentionedMember) return message.channel.send(&quot;couldn't find that noob&quot;);
          //if (!mentionedMember.bannable) return message.channel.send(&quot;i can't ban that user you noob&quot;);
  
          const banEmbed = new Discord.MessageEmbed()
              .setTitle(`you got banned from ${message.guild.name}`)
              .setDescription(`reason for ur disposal: ${reason}`)
              .setColor(&quot;#FF0000&quot;)
              .setTimestamp()
  
          await mentionedMember.send(banEmbed).catch(err =&gt; message.channel.send(err));
          await mentionedMember.ban({
              reason: reason
          }).catch(err =&gt; message.channel.send(err)).then(() =&gt; message.channel.send(&quot;u banned &quot; + mentionedMember.user.tag))
      }
  }```
  
  
    [1]: https://i.stack.imgur.com/HEaRz.png
  </code></pre>