Actually fix the color

This commit is contained in:
loicbersier 2020-04-15 04:45:05 +02:00
parent 9c8b81049b
commit 63083caa49

View file

@ -29,9 +29,8 @@ class userInfoCommand extends Command {
}
let member = message.guild.member(user);
const Embed = this.client.util.embed()
.setColor(message.member ? message.member.displayHexColor : 'NAVY')
.setColor(member ? member.displayHexColor : 'NAVY')
.setAuthor(`${user.tag} (${user.id})`, user.displayAvatarURL())
.addField('Current rank hex color', member.displayHexColor, true)
.addField('Joined guild at', member.joinedAt, true)