title: Cannot read property 'roles' of null
body: <p>I want my bot to send a private message to the user that joins my server. </p>
  
  <p>To do this I used:</p>
  
  <pre><code> client.on('guildMemberAdd', member =&gt; {
     const channel = member.guild.channels.find(ch =&gt; ch.name === 'benvenuto');
    channel.send(`Date il benvenuto a ${member}!`);
    member.send('test');
  });
  </code></pre>
  
  <p>As soon as a user joins the server, I get this error:</p>
  
  <pre><code>TypeError: Cannot read property 'roles' of null
      at Client.client.on.message (C:\Users\Kikkiu\Desktop\BotTuttofare\index.js:9:19)
      [...]
  </code></pre>
  
  <p>The error brings me to this part of the code:</p>
  
  <pre><code>if(message.member.roles.find(r =&gt; r.name === "Admin") || message.member.roles.find(r =&gt; r.name === "Mod")) {
    if(!message.author.bot) {
  
    if(message.content == '.del50')
    message.channel.bulkDelete(50)
  
    if(message.content == '.del100')
    message.channel.bulkDelete(100)
  
    if(message.content == '.del1')
    message.channel.bulkDelete(2)
  
    if(message.content == '.del10')
    message.channel.bulkDelete(10)
  
    if(message.content == '.del2')
    message.channel.bulkDelete(3)
  }}
  </code></pre>
  
  <p>If I remove the part that sends the private message I don't get this error. What could it be?</p>