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-29 13:51:43 -05:00
|
|
|
async execute(client, message, args, config) {
|
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 13:20:32 -05:00
|
|
|
"title": `:frame_photo: ${user.username}'s Beautiful Avatar!`,
|
2022-03-26 03:33:18 -05:00
|
|
|
"color": 9442302,
|
2022-03-26 12:31:03 -05:00
|
|
|
"footer": {
|
|
|
|
"icon_url": message.author.displayAvatarURL(),
|
2022-03-29 13:51:43 -05:00
|
|
|
"text": config.footerTxt
|
2022-03-26 12:31:03 -05:00
|
|
|
},
|
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
|
|
|
}
|