16 lines
500 B
JavaScript
16 lines
500 B
JavaScript
|
module.exports = {
|
||
|
name: 'avatar',
|
||
|
aliases: ['icon', 'pfp'],
|
||
|
description: 'Send the avatar of the user mentionned',
|
||
|
execute(message) {
|
||
|
if (!message.mentions.users.size) {
|
||
|
return message.channel.send(`Your avatar: ${message.author.displayAvatarURL}`);
|
||
|
}
|
||
|
|
||
|
const avatarList = message.mentions.users.map(user => {
|
||
|
return `${user.username}'s avatar: ${user.displayAvatarURL}`;
|
||
|
});
|
||
|
message.channel.send(avatarList);
|
||
|
},
|
||
|
};
|