client.on('message', message =>{
if (message.author.bot) return;
const args = message.content.slice(prefix.length).trim().split(/ +/);
const command = args.shift().toLowerCase();
if (command == 'avatar') {
const usuario = message.mentions.users.first() || message.member;
const embed = new MessageEmbed()
.setColor('RANDOM')
.setImage(usuario.user.displayAvatarURL)
.setDescription(`Avatar del usuario ${usuario.user.username}`);
message.channel.sent(embed);
}
问题在 (usuario.user.displayAvatarURL)