title: discord.js V12 'filter' undefined
body: <p>So I was updating my bot to discord.js V12 the command ;whois is bringing up an error
  (node:553) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'filter' of undefined</p>
  
  <p>Node.js is the current version for Discord.js I do know if it has to do with the code</p>
  
  <pre><code>const { MessageEmbed } = require("discord.js");
  const { stripIndents } = require("common-tags");
  const { getMember, formatDate } = require("../../functions.js");
  
  module.exports = {
    config:{
      name: "whois",
      aliases: ["who", "user", "info"],
     category: "info",
      description: "Returns user information",
      usage: "[username | id | mention]"
    },
      run: (client, message, args) =&gt; {
          const member = getMember(message, args.join(" "));
  
          // Member variables
          const joined = formatDate(member.joinedAt);
          const roles = member.roles
              .filter(r =&gt; r.id !== message.guild.id)
              .map(r =&gt; r).join(", ") || 'none';
  </code></pre>
  
  <p>If I remove .filter &amp; .map another error pops up with .createdAT</p>
  
  <pre><code>  // User variables
          const created = formatDate(member.user.createdAt);
  
          const embed = new MessageEmbed()
              .setFooter(member.displayName, member.user.displayAvatarURL({ dynamic:true }))
              .setThumbnail(member.user.displayAvatarURL({ dynamic:true }))
              .setColor(member.displayHexColor === '#000000' ? '#ffffff' : member.displayHexColor)
              .setAuthor(`${member.displayName} | WHOIS`, member.user.displayAvatarURL)
  
              .addField('Member information:', stripIndents`** Display name:** ${member.displayName}
              ** Joined at:** ${joined}
              ** Roles:** ${roles}`, true)
  
              .addField('User information:', stripIndents`** ID:** ${member.user.id}
              ** Username**: ${member.user.username}
              ** Tag**: ${member.user.tag}
              ** Created at**: ${created}`, true)
  
              .setTimestamp()
  
          if (member.user.presence.game) 
              embed.addField('Currently playing', stripIndents`** Name:** ${member.user.presence.activity.name}`);
  
          message.channel.send(embed);
      }
  }
  </code></pre>
  
  <p>Now thats is the whole whois code I don't know what else needs to get updated. </p>