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.
2022-03-26 03:33:18 -05:00
|
|
|
module.exports = {
|
2022-03-26 03:58:15 -05:00
|
|
|
|
2022-03-26 03:33:18 -05:00
|
|
|
name: "avatar",
|
|
|
|
description: "Gets a user's avatar.",
|
2022-03-26 12:31:03 -05:00
|
|
|
async execute(client, message, args, footerTxt) {
|
2022-03-26 03:33:18 -05:00
|
|
|
|
2022-03-26 12:31:03 -05:00
|
|
|
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author;
|
2021-02-25 00:48:40 -06:00
|
|
|
|
2022-03-26 11:02:17 -05:00
|
|
|
await message.channel.send({embed: {
|
2022-03-26 03:33:18 -05:00
|
|
|
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
|
|
|
|
"color": 9442302,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
|
|
|
"text": footerTxt
|
|
|
|
},
|
2022-03-26 03:33:18 -05:00
|
|
|
"image": {
|
|
|
|
"url": user.displayAvatarURL()
|
|
|
|
}
|
2022-03-26 11:02:17 -05:00
|
|
|
}});
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2021-02-25 00:48:40 -06:00
|
|
|
}
|