title: TypeError: Cannot read property 'add' of undefined Discord.js simple code
body: <p>So, I am making a bot and here's a part of my code what has a problem:</p>
  <pre><code>    if(message.content.startsWith(&quot;$sudo make-mod &quot;)) {
      target = message.mentions.users.first();
      let role = message.guild.roles.cache.find(r =&gt; r.id = &quot;&lt;@&amp;938235657929773077&gt;&quot;)
  
      console.log(target)
      target.roles.add(role.id)
  }
  </code></pre>
  <p>and I get this error:</p>
  <pre><code>    target.roles.add(role.id)
                       ^
  
  TypeError: Cannot read property 'add' of undefined
  </code></pre>
  <p>I don't know what's the problem. Can someone help???</p>