title: Cannot read property 'find' of undefined when the variable is defined
body: <p>I am getting a TypeError, while it should not be as I believe I have the variables properly defined (please correct me!)</p>
  
  <p>Already had a look around to try and find it; however, even with the 'fixes' it still gave me the error. I apologise for the error I definitely have made!</p>
  
  <pre><code>var parts = message.content.split(" ");
  if (message.content.startsWith(prefix + "sr")) {
    const servguild = message.guild.id;
    const member = message.mentions.members.first();
    const role = servguild.roles.find('name', parts[2]);
    member.addRole(role);
  }
  </code></pre>