From cacdf712425bf18bd916764b053f9b576f734309 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 15 Apr 2020 04:48:41 +0200 Subject: [PATCH] fix joined at when not in guild --- 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 82e04526..e79a7996 100644 --- a/commands/utility/userInfo.js +++ b/commands/utility/userInfo.js @@ -33,7 +33,7 @@ class userInfoCommand extends Command { .setColor(member ? member.displayHexColor : 'NAVY') .setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) .addField('Current rank hex color', member ? member.displayHexColor : 'No rank color', true) - .addField('Joined guild at', member.joinedAt, true) + .addField('Joined guild at', member ? member.joinedAt : 'Not in this guild', true) .addField('Date when account created', user.createdAt, true) .setTimestamp();