fix role color issue

This commit is contained in:
MathMan05 2025-03-10 15:00:38 -05:00
parent 3ce6748ad6
commit 6509073753

View file

@ -48,7 +48,7 @@ class Role extends SnowFlake {
if (this.color === 0) { if (this.color === 0) {
return null; return null;
} }
return `#${this.color.toString(16)}`; return `#${this.color.toString(16).padStart(6, "0")}`;
} }
canManage() { canManage() {
if (this.guild.member.hasPermission("MANAGE_ROLES")) { if (this.guild.member.hasPermission("MANAGE_ROLES")) {