title: TypeError: message.member.roles.some is not a function
body: <pre><code>    if (message.content.startsWith(`${prefix2}red`)){
      if (message.member.roles.some(role =&gt; role.name === 'Red')) return message.channel.send(`You already has that role `)
      let role = message.guild.roles.find(r =&gt; r.name === "Red");
      let member = message.member; 
      message.delete(1)
      member.addRole(role).catch(console.error)
          }   
      })
  </code></pre>
  
  <p>What do I need to change? for it to work?</p>
  
  <p>the error is 
   <code>if (message.member.roles.some(role =&gt; role.name === 'Red')) return message.channel.send(`You already has that role `)
  TypeError: message.member.roles.some is not a function</code></p>