title: Discord.JS Userinfo command
body: <p>I'm trying to make this bot able to do this...</p>
  
  <ul>
  <li>Display User Roles</li>
  <li>You do d!au @User and their user info shows</li>
  </ul>
  
  <p>The only thing is that I do not know how to do this, I've found some other stack overflow questions but their bot requires "moment" and I have no idea what moment is. This is in a command file, not a index.js file FYI.</p>
  
  <pre><code>    var commando = require('discord.js-commando');
  var discord = require('discord.js');
  
  class aboutuser extends commando.Command 
  {
      constructor(client) {
          super(client, {
              name: 'aboutuser',
              group: 'help',
              memberName: 'aboutuser',
              description: 'Lists information about a specific user.',
              aliases: ['au', 'aboutu', 'auser', 'user'],
          })
      }
  async run(message, args){
  
      let userinfo = {};
      userinfo.bot = message.client.user.bot;
      userinfo.createdat = message.client.user.createdAt;
      userinfo.discrim = message.client.user.discriminator;
      userinfo.id = message.client.user.id;
      userinfo.mfa = message.client.user.mfaEnabled;
      userinfo.pre = message.client.user.premium;
      userinfo.presen = message.client.user.presence;
      userinfo.tag = message.client.user.tag;
      userinfo.uname = message.client.user.username;
      userinfo.verified = message.client.user.verified;
  
      userinfo.avatar = message.client.user.avatarURL;
  
      var myInfo = new discord.RichEmbed()
          .setAuthor(userinfo.uname, userinfo.avatar)
          .addField("Bot?",userinfo.bot, true)
          .addField("Created At",userinfo.createdat, true)
          .addField("Discriminator",userinfo.discrim, true)
          .addField("Client ID",userinfo.id, true)
          .addField("2FA/MFA Enabled?",userinfo.mfa, true)
          .addField("Paid Account?",userinfo.pre, true)
          .addField("Presence",userinfo.presen, true)
          .addField("Client Tag",userinfo.tag, true)
          .addField("Username",userinfo.uname, true)
          .addField("Verified?",userinfo.verified, true)
          .setColor(0xf0e5da)
          .setFooter('s!aboutserver')
          .setTitle("About this user...")
          .setThumbnail(userinfo.avatar)
  
  
          message.channel.sendEmbed(myInfo);
  
  }
  
  }
  module.exports = aboutuser;
  </code></pre>
  
  <p>I want to make my bot able to display a user's roles and make it so that you can tag them. </p>
  
  <p>Reality : The command results in a error, but the bot is online. Referance Error, blank is not defined.</p>
  
  <p>Expects : A bot that can list the roles of a user, and you can see the information of other users when using the command.</p>
  
  <p>I've only pasted the code that WORKS, not the ones that end up as failiures.</p>