From bbc3e895de7081a08fb199f468a4119098153f9c Mon Sep 17 00:00:00 2001 From: Pierre <19956672+iwa@users.noreply.github.com> Date: Thu, 11 Jun 2020 22:51:35 +0200 Subject: [PATCH] fix profile card custom color (#91) --- src/commands/profile/profile.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/profile/profile.ts b/src/commands/profile/profile.ts index 6c2b543..af28f9a 100644 --- a/src/commands/profile/profile.ts +++ b/src/commands/profile/profile.ts @@ -86,7 +86,7 @@ async function profileImg(bot: Client, msg: Message, db: Db, id: string) { colors.set('#81d14d', '#a7ea7b'); colors.set('#f5bc31', '#f4da9b'); - let userColor = msg.member.displayHexColor, firstColor, secondColor; + let userColor = member.displayHexColor, firstColor, secondColor; if (id == process.env.QUMU || id == bot.user.id || member.roles.cache.find(val => val.id == process.env.MODROLE)) { firstColor = '#90B1FF'; secondColor = '#F0A6E4'; } else {