title: Discord.js how to add role to a specific user ID?
body: <p>I'm trying to create a bot for my friends and I only so I hardcoded our discord ID's. Now I'm trying to make the bot assign us roles using our IDs.</p>
  <p>Here's what I have so far and it's giving me an error.</p>
  <pre class="lang-js prettyprint-override"><code>bot.on('ready', () =&gt; {
      const guild = bot.guilds.get(&quot;OUR SERVER ID&quot;);
      let mcRole = guild.roles.find(x =&gt; x.name === &quot;Minecraft Players&quot;);
      let johnMember = guild.members.get(&quot;id&quot;, &quot;JOHN'S ID&quot;)
      johnMember.addRole(mcRole);
  })
  </code></pre>
  <p>Error says:</p>
  <pre><code>johnMember.addRole(mcRole);
             ^
  
  TypeError: Cannot read property 'addRole' of undefined
  </code></pre>