no rank color

This commit is contained in:
loicbersier 2020-04-15 04:47:50 +02:00
parent 63083caa49
commit 24a994308c

View file

@ -32,7 +32,7 @@ class userInfoCommand extends Command {
const Embed = this.client.util.embed() const Embed = this.client.util.embed()
.setColor(member ? member.displayHexColor : 'NAVY') .setColor(member ? member.displayHexColor : 'NAVY')
.setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL()) .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('Joined guild at', member.joinedAt, true)
.addField('Date when account created', user.createdAt, true) .addField('Date when account created', user.createdAt, true)
.setTimestamp(); .setTimestamp();