title: Cannot read property 'roles' of undefined | discord.js | javascript
body: <pre><code>bot.on("message", (message) =&gt; {
  if(message.author.bot) return;
    if(message.content.startsWith(config.prefix + "userinfo") || message.content.startsWith(config.prefix + "ui")) {
  
      let usera = message.mentions.users.first();
      if(!usera) return message.channel.send("Must specify user");
      let verifiedRole = usera.member.roles.find(val =&gt; val.name === 'verified');
      let value = verifiedRole ? "true" : "false";
      let gameName = usera.presence.game ? usera.presence.game.name : "None";
  
  
      let embed = new Discord.RichEmbed()
      .setAuthor(usera.tag, usera.avatarURL)
      .addField("ID", usera.id, true)
      .addField("Username", usera.username, true)
      .addField("Status", usera.presence.status, true)
      .addField("Game", gameName, true)
      .addField("Joined Server", usera.joinedAt, true)
      .addField("Created", usera.createdAt, true)
      .addField("Bot", usera.bot, true)
      addField("Verified", value, true)
      .setTimestamp()
      .setColor(0x0f7fa6)
      .setThumbnail(usera.avatarURL);
      message.channel.send({embed});
  
      console.log("'UI' has been executed in the guild '" + message.guild.name + "' by " + message.author.username + " (" + message.author.id + ")");
  }
  });
  </code></pre>
  
  <p>Running this comes up with 'TypeError: Cannot read property 'roles' of undefined' with an arrow under the word 'roles' in <code>let verifiedRole = usera.member.roles.find(val =&gt; val.name === 'verified');</code></p>
  
  <p>How do I fix this?</p>