im stupid lmao
This commit is contained in:
parent
10a1e24c18
commit
0f1b562d03
1 changed files with 3 additions and 3 deletions
|
@ -65,9 +65,9 @@ class Functions {
|
||||||
return highestRole;
|
return highestRole;
|
||||||
}
|
}
|
||||||
|
|
||||||
displayHexColour (guild, userID) {
|
displayHexColour (guild, member) {
|
||||||
if (!userID) userID === this.client.user.id;
|
if (!member) member = guild.members.get(this.client.user.id);
|
||||||
const roles = this.roleObjects(guild, guild.members.get(userID).roles);
|
const roles = this.roleObjects(guild, member.roles);
|
||||||
for (const object of roles) {
|
for (const object of roles) {
|
||||||
if (object.color !== 0) return '#' + object.color.toString(16);
|
if (object.color !== 0) return '#' + object.color.toString(16);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue