title: Check if mentioned profile is a bot
body: <p>So I'm making a Discord bot and I've been stuck on this problem for quite a long time. I'm trying to check if a mentioned user is a bot. I've used</p>
  
  <pre><code>message.mentions.members.first();
  </code></pre>
  
  <p>to check the mentions which are stored in the variable <code>profileMentionned</code></p>
  
  <pre><code>let profileMentionned = message.mentions.members.first();
  </code></pre>
  
  <p>as the mentioned profile argument. But when I tried to put</p>
  
  <pre><code>profileMentionned.bot
  </code></pre>
  
  <p>in an if statement, it would never output a <code>boolean</code> value, it won't test if the user was a bot and would just come out as the default value I set my <code>var</code> which was <code>"undefined"</code>.</p>
  
  <p>Here's my source:</p>
  
  <pre><code>case "profile":
      var isAdmin = "undefined";
      let profileMentionned = message.mentions.members.first();
      if (!profileMentionned) return message.channel.send("Error message about mentionning a user")
      if (profileMentionned.hasPermission("MANAGE_MESSAGES"))
      {
          isAdmin = "Admin boi";
      } else {
          isAdmin = "Member pleb";
      //Now here's the problem part
      if (profileMentionned.bot) isAdmin = "Bot";
      //I also tried with "if (profileMentionned === true) isAdmin = "Bot";"
  break;
  </code></pre>
  
  <p>Thank you for answering! &lt;3 :)</p>