Add avatar command

This commit is contained in:
Anthony M 2021-02-25 00:48:40 -06:00 committed by GitHub
parent e30882b055
commit 62338fff98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

21
commands/avatar.js Normal file
View file

@ -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 });
}
}