forked from Galactic/galactic-bot
colours
This commit is contained in:
parent
12eaf2f790
commit
41ba54bc1d
@ -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;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user