fix joined at when not in guild

This commit is contained in:
loicbersier 2020-04-15 04:48:41 +02:00
parent 24a994308c
commit cacdf71242

View file

@ -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();