Everything seems to be working fine when I check my own avatar, but it doesn't work properly when I mention another user.
Here's the code I'm using:
client.on('message', message => {
if (message.content === `${prefix}ava`) {
const taggedUser = message.mentions.users.first() || message.author;
const avatarEmbed = new Discord.RichEmbed()
.setColor(0xFFC0CB)
.setAuthor(`${taggedUser.tag} - ${taggedUser.presence.status}`)
.setImage(taggedUser.avatarURL({ format: "png", dynamic: true, size: 1024 }));
message.channel.send(avatarEmbed);
}
});