title: presence update not working discord.js v12
body: <p>I am trying to give a role if members has set a custom presence what I want set their custom status in discord!</p>
  <p>but bot is giving a promblem</p>
  <pre><code>
  const Discord = require('discord.js')
  
  const client = new Discord.Client()
  
  client.on('ready', () =&gt; {
      console.log('bot sucessfully logged')
  })
  
  client.on(&quot;presenceUpdate&quot;, (oldPresence, newPresence) =&gt; {
      let guild = oldPresence.guild;
      //guild.roles =&gt; guild.roles.cache
      let playRole = guild.roles.cache.get(&quot;837208147302154252&quot;);
      if (!playRole) return;
  
      if (newPresence.find(e =&gt; e.name === &quot;Testing&quot;)) {
          newPresence.member.roles.add(playRole);
      }
  });
  
  client.login(&quot;token&quot;)
  
  </code></pre>
  <p>Error is <code> newPresence.find is not a function</code></p>