From 63083caa495e006fab177f22f7212dd117024595 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 15 Apr 2020 04:45:05 +0200 Subject: [PATCH] Actually fix the color --- commands/utility/userInfo.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 06b58f06..5c4ce834 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -29,9 +29,8 @@ class userInfoCommand extends Command { } let member = message.guild.member(user); - const Embed = this.client.util.embed() - .setColor(message.member ? message.member.displayHexColor : 'NAVY') + .setColor(member ? member.displayHexColor : 'NAVY') .setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) .addField('Current rank hex color', member.displayHexColor, true) .addField('Joined guild at', member.joinedAt, true)