This commit is contained in:
Erik 2021-05-10 23:56:14 +03:00
parent 12eaf2f790
commit 41ba54bc1d
No known key found for this signature in database
GPG Key ID: 7E862371D3409F16

View File

@ -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;
}
}