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
563 B
JavaScript

module.exports = {
name: "avatar",
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({embed: {
"title": `:frame_photo: ${user.username}'s Beautiful Avatar!`,
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": config.footerTxt
},
"image": {
"url": user.displayAvatarURL()
}
}});
}
}