title: Discord,js TypeError: member.guild.roles.find is not a function
body: <p>I keep on getting this error. I am making a welcomer bot for my discord server and I am trying to implement a role adding function when somebody joins and keep on getting that error.</p>
  <pre><code>  
    const channel = member.channels.cache.find(ch =&gt; ch.name === 'welcome');
    
    if (!channel) return;
    
    channel.send(`Welcome to the Server, ${member}`);
  });
  
  bot.on('guildMemberAdd', member =&gt; {
  role = member.addRole(member.guild.roles.find(&quot;name&quot;,&quot;member&quot;));
  });```
  </code></pre>