This repository has been archived on 2024-01-30. You can view files and clone it, but cannot push or open issues or pull requests.
anitrox/commands/avatar.js

22 lines
596 B
JavaScript
Raw Normal View History

module.exports = {
name: require('path').parse(__filename).name,
description: "Gets a user's avatar.",
2022-03-29 13:51:43 -05:00
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: [{
2022-03-26 13:20:32 -05:00
"title": `:frame_photo: ${user.username}'s Beautiful Avatar!`,
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
2022-03-29 13:51:43 -05:00
"text": config.footerTxt
},
"image": {
"url": user.displayAvatarURL()
}
}]});
}
2021-02-25 00:48:40 -06:00
}