title: Applying a role if users do not have other roles
body: <p>Users are still getting the public role regardless of the role they have</p>
  
  <p>I'm sorry if the answer here is fairly obvious but I'm learning javascript as I write this bot. I'm aiming for users to be able to do !name  and gain a role called "public" as long as they don't have a role listed in the code (General, Captain, etc.).</p>
  
  <pre><code>client.on('message', async message =&gt; {
  if (message.channel.id === '535226845654810624'); {
      if(message.content.startsWith('!name')) {
          if (message.member.roles.some(role =&gt; role.name === 'General', 'Captain', 'Lieutenant', 'Sergeant', 'Corporal', 'Recruit'));
          const newname = message.content.split(' ').slice(1).join(' ');
          message.member.setNickname(newname);
      }
  
      else {(message.content.startsWith('!name'));} {
          if(message.channel.id === '535226845654810624') {
              const newname = message.content.split(' ').slice(1).join(' ');
              message.member.setNickname(newname);
              const newrole = message.guild.roles.find(x =&gt; x.name === 'Public');
              message.member.addRole(newrole);
              message.delete();
          }
      }
  </code></pre>
  
  <p>I'm sure the code is completely ugly. I'm still learning. Right now regardless of if they have the Gen/Capt/Lieutenant/etc roles they still gain the public role. </p>
  
  <pre><code>client.on('message', async message =&gt; {
  if(message.channel.id === '535226845654810624') {
      if (message.content.startsWith('!name')) {
          const newname = message.content.split(' ').slice(1).join(' ');
          message.member.setNickname(newname);
          const newrole = message.guild.roles.find(x =&gt; x.name === 'Public');
          message.member.addRole(newrole);
          message.delete();
      }
  }
  </code></pre>
  
  <p>This is the code I had before adding in the attempt to ignore the role add if they have the other roles. I'm not sure how to change this to what I'm looking for.</p>