24 lines
612 B
JavaScript
24 lines
612 B
JavaScript
module.exports = {
|
|
|
|
name: require('path').parse(__filename).name,
|
|
description: "Gets a user's avatar.",
|
|
|
|
async execute (client, message, args, config) {
|
|
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author;
|
|
|
|
await message.channel.send({
|
|
embeds: [{
|
|
title: `:frame_photo: ${user.username}'s Beautiful Avatar!`,
|
|
color: 9442302,
|
|
footer: {
|
|
icon_url: message.author.displayAvatarURL(),
|
|
text: config.footerTxt
|
|
},
|
|
image: {
|
|
url: user.displayAvatarURL()
|
|
}
|
|
}]
|
|
});
|
|
}
|
|
};
|