fix role color issue
This commit is contained in:
@@ -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")) {
|
||||||
|
Reference in New Issue
Block a user