From 24a994308c47bb2dc523ed6c39cd40aacb4d3536 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 15 Apr 2020 04:47:50 +0200 Subject: [PATCH] no rank 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 5c4ce83..82e0452 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -32,7 +32,7 @@ class userInfoCommand extends Command { const Embed = this.client.util.embed() .setColor(member ? member.displayHexColor : 'NAVY') .setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) - .addField('Current rank hex color', member.displayHexColor, true) + .addField('Current rank hex color', member ? member.displayHexColor : 'No rank color', true) .addField('Joined guild at', member.joinedAt, true) .addField('Date when account created', user.createdAt, true) .setTimestamp();