diff --git a/commands/avatar.js b/commands/avatar.js new file mode 100644 index 0000000..6703783 --- /dev/null +++ b/commands/avatar.js @@ -0,0 +1,21 @@ +module.exports = { + name: "avatar", + description: "Gets a users avatar.", + execute(client, message, args) { + const user = message.mentions.users.first() + + const embed = { + "title": ":frame_photo: " + user.username + "'s Avatar", + "description": "Here is " + user.username + "'s avatar!", + "color": 9442302, + "footer": { + "icon_url": "https://cdn.discordapp.com/embed/avatars/0.png", + "text": "Made with <3 in Illinois | Anitrox (C) 2018-2021 IDeletedSystem64" + }, + "image": { + "url": user.displayAvatarURL() + } + }; + message.channel.send({ embed }); + } +}