title: Discord.js : Add a role on a specific server to a user that DM the bot
body: <p>I am currently developing a discord bot, and I would like to add the role "Members" on my server to any users that DM the bot. However I can't manage to make addRole work. I keep getting the following error : </p>
  
  <blockquote>
    <p>TypeError: member.guild.roles.cache.addRole is not a function</p>
  </blockquote>
  
  <p>This is my code : </p>
  
  <pre><code>let server = client.guilds.cache.get('myserverID')
  var memberRole= server.roles.cache.find(role =&gt; role.name === "Member")
  let member = server.members.cache.get(msg.author.id);
  member.guild.roles.cache.addRole(memberRole)
  </code></pre>
  
  <p>Could someone please help me ?</p>