fix role color issue
This commit is contained in:
parent
3ce6748ad6
commit
6509073753
1 changed files with 1 additions and 1 deletions
|
@ -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")) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue