title: Auto role when someone is playing?
body: <p>I'm trying to get my bot to automatically add someone to a role when they start a game, and remove it from that role when they leave the game.</p>
  
  <p>I have already tried several things but without success :</p>
  
  <p>Some other bot change activity but I do not want the other bots of my server to be added in the role so I did that (and it seems to work): </p>
  
  <pre><code>let roleid = "ROLE BOT ID" 
  
  if (newMember.roles.has(roleid)) {}
  else {console.log("my code here")}    
  </code></pre>
  
  <p>I have the impression that discord.js "gathers" people who play a game (on desktop) and people connected to mobile. So I try to separate them like that but the "! =" does not seem to work :</p>
  
  <pre><code>if (newMember.presence.clientStatus = 'desktop') {console.log("my code here")}
  </code></pre>
  
  <p>Then I have one last problem is that my bot adds me to the role when I leave my game</p>
  
  <p>Here is my whole code</p>
  
  <pre><code>client.on('presenceUpdate', (oldMember, newMember) =&gt; {
  let guildChannels = newMember.guild;
  let roleid = "ROLE BOT ID" 
  
  if (newMember.roles.has(roleid)) {}
  else {
   if (newMember.presence.clientStatus = 'desktop') {
    if (newMember.presence.ActivityType = 'PLAYING') {
     newMember.addRole(newMember.guild.roles.find (x =&gt; x.id == 'PLAYING ROLE ID'))
    console.log(newMember.user.tag + ' -&gt; "ROLE PLAYING NAME"')
  }
  else {newMember.removeRole(newMember.guild.roles.find (x =&gt; x.id ==     'PLAYING ROLE ID'))
      console.log(newMember.user.tag + ' / "ROLE PLAYING NAME"')
     }
    }
   }
  
  });
  </code></pre>
  
  <p>I'd like my bot to add all the people playing a role, and delete them when they're done playing</p>
  
  <p>I do not have an error message only that my bot is not doing exactly what I want and I do not have an explanation</p>