From 41ba54bc1dbe1492babd7239f65b879459a5a7da Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 10 May 2021 23:56:14 +0300 Subject: [PATCH] colours --- structure/client/components/commands/information/User.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/structure/client/components/commands/information/User.js b/structure/client/components/commands/information/User.js index 53bbb31..408f726 100644 --- a/structure/client/components/commands/information/User.js +++ b/structure/client/components/commands/information/User.js @@ -199,8 +199,12 @@ class UserCommand extends Command { // }).join(' ') // }); - const highestColouredRole = member.roles.cache.filter((role) => role.color !== 0).sort((a, b) => b.rawPosition - a.rawPosition).first(); - if (highestColouredRole) response.color = highestColouredRole.color; + // const highestColouredRole = member.roles.cache.filter((role) => role.color !== 0).sort((a, b) => b.rawPosition - a.rawPosition).first(); + // if (highestColouredRole) response.color = highestColouredRole.color; + + const colour = member.highestRoleColor; + if (colour) response.color = colour; + } }