From 62338fff98f8c6531bf31e1d011e7260b59dd8fa Mon Sep 17 00:00:00 2001 From: Anthony M <47640864+IDeletedSystem64@users.noreply.github.com> Date: Thu, 25 Feb 2021 00:48:40 -0600 Subject: [PATCH] Add avatar command --- commands/avatar.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 commands/avatar.js 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 }); + } +}