From ac74791d8d284e43d0cd3d7ff300d24e94625ad9 Mon Sep 17 00:00:00 2001 From: 035WasTaken <60830475+035WasTaken@users.noreply.github.com> Date: Wed, 21 Oct 2020 09:27:40 -0400 Subject: [PATCH] Update pfp.js --- commands/pfp.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/pfp.js b/commands/pfp.js index 23d2936..046c153 100644 --- a/commands/pfp.js +++ b/commands/pfp.js @@ -2,9 +2,7 @@ module.exports = { name: 'pfp', description: 'get user pfp', execute(message) { - if (!message.mentions.users.size) { - return message.channel.send(`Your avatar: ${message.author.displayAvatarURL}`); - } + if (!message.mentions) return message.channel.send(`Your avatar: ${message.author.displayAvatarURL}`); const pfp = message.mentions.users.map(user => { return `${user.username}'s avatar: ${user.displayAvatarURL}`; @@ -12,4 +10,4 @@ module.exports = { message.channel.send(pfp); }, -}; \ No newline at end of file +};