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

24 lines
612 B
JavaScript
Raw Normal View History

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()
}
}]
});
}
};