diff --git a/commands/avatar.js b/commands/avatar.js index 061104c..3741e6e 100644 --- a/commands/avatar.js +++ b/commands/avatar.js @@ -2,15 +2,17 @@ module.exports = { name: "avatar", description: "Gets a users avatar.", execute(client, message, args) { - const user = message.mentions.users.first() + user = message.mentions.users.first() + if (!user) user = message.author + + const {footerTxt} = require('../config.json'); const embed = { - "title": ":frame_photo: " + user.username + "'s Avatar", - "description": "Here is " + user.username + "'s avatar!", + "title": ":frame_photo: " + user.username + "'s Beautiful Avatar!", "color": 9442302, "footer": { - "icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png", - "text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021" + "icon_url": message.author.displayAvatarURL(), + "text": footerTxt }, "image": { "url": user.displayAvatarURL()