From 9c8b81049b9f81385b603f60c2b9a424a9bd1e26 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 15 Apr 2020 04:43:38 +0200 Subject: [PATCH] fix color --- commands/utility/userInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/utility/userInfo.js b/commands/utility/userInfo.js index 69fc7576..06b58f06 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -31,7 +31,7 @@ class userInfoCommand extends Command { let member = message.guild.member(user); const Embed = this.client.util.embed() - .setColor(member.displayHexColor) + .setColor(message.member ? message.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)