fix color

This commit is contained in:
loicbersier 2020-04-15 04:43:38 +02:00
parent 745f26c174
commit 9c8b81049b

View file

@ -31,7 +31,7 @@ class userInfoCommand extends Command {
let member = message.guild.member(user); let member = message.guild.member(user);
const Embed = this.client.util.embed() const Embed = this.client.util.embed()
.setColor(member.displayHexColor) .setColor(message.member ? message.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.displayHexColor, true)
.addField('Joined guild at', member.joinedAt, true) .addField('Joined guild at', member.joinedAt, true)