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
617 B
JavaScript
Raw Normal View History

2021-02-25 00:48:40 -06:00
module.exports = {
name: "avatar",
description: "Gets a users avatar.",
execute(client, message, args) {
user = message.mentions.users.first()
if (!user) user = message.author
const {footerTxt} = require('../config.json');
2021-02-25 00:48:40 -06:00
const embed = {
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
2021-02-25 00:48:40 -06:00
"color": 9442302,
"footer": {
"icon_url": message.author.displayAvatarURL(),
"text": footerTxt
2021-02-25 00:48:40 -06:00
},
"image": {
"url": user.displayAvatarURL()
}
};
message.channel.send({ embed });
}
}