title: Discordjs check if a user has a role
body: <p>I have this code which works fine, I just need to check if a user has a role, it logs all the users, with their id, discriminator and username exc. I just can't get the roles. Can you guys please help?</p>
  
  <pre><code>client.on('ready', () =&gt; {
    console.log(`logged in as ${client.user.username}`);
  
      var Count;
      for(Count in client.users.array()){
         var User = client.users.array()[Count];
         if(User.username == "someUsername"){
           //User.sendMessage("you");
         }
         //User.checkRole("Admin");
  
      }
  }
  </code></pre>
  
  <p><code>checkRole()</code> function is something that I made up. I jsut need some help.</p>
  
  <pre><code>client.on('ready', () =&gt; {
      console.log(`logged in as ${client.user.username}`);
  
      var Count;
      for(Count in client.users.array()){
         var User = client.users.array()[Count];
         if(User.hasRole("Admin")){
            console.log(User.username);
         }
      }
  })
  </code></pre>