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.
2021-02-25 00:48:40 -06:00
|
|
|
module.exports = {
|
|
|
|
name: "avatar",
|
|
|
|
description: "Gets a users avatar.",
|
|
|
|
execute(client, message, args) {
|
2022-03-21 10:37:04 -05:00
|
|
|
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 = {
|
2022-03-21 10:37:04 -05:00
|
|
|
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
|
2021-02-25 00:48:40 -06:00
|
|
|
"color": 9442302,
|
|
|
|
"footer": {
|
2022-03-21 10:37:04 -05:00
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
2021-02-25 00:48:40 -06:00
|
|
|
},
|
|
|
|
"image": {
|
|
|
|
"url": user.displayAvatarURL()
|
|
|
|
}
|
|
|
|
};
|
|
|
|
message.channel.send({ embed });
|
|
|
|
}
|
|
|
|
}
|