title: Discord.js Avatar command
body: <p>Hello i am trying to make command to show pfp of mentioned person but i am stuck with that </p>
  
  <p><a href="https://i.stack.imgur.com/D7yGn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/D7yGn.png" alt="enter image description here"></a></p>
  
  <p>The code that i am using is this 
  and has no errors</p>
  
  <pre><code>case 'avatar1':
  
                      const user = message.mentions.users.first() || message.author;
                      const avatarEmbed = new Discord.MessageEmbed()
                          .setColor("RANDOM")
                          .setAuthor(user.username)
                          .setImage(user.avatarURL);
                      message.channel.send(avatarEmbed);
  
                  break;
  </code></pre>