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-04-18 11:25:40 -05:00
|
|
|
name: require('path').parse(__filename).name,
|
2022-03-26 03:33:18 -05:00
|
|
|
description: "Gets a user's avatar.",
|
2022-04-18 11:25:40 -05:00
|
|
|
|
2022-04-21 18:09:21 -05:00
|
|
|
async execute (client, message, args, config) {
|
2022-03-26 12:31:03 -05:00
|
|
|
const user = message.mentions.users.first() || client.users.cache.get(args[0]) || message.author;
|
2022-04-21 18:09:21 -05:00
|
|
|
|
|
|
|
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()
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
});
|
2022-03-26 03:33:18 -05:00
|
|
|
}
|
2022-04-21 18:09:21 -05:00
|
|
|
};
|