Skip to content

Commit 6509073

Browse files
committed
fix role color issue
1 parent 3ce6748 commit 6509073

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webpage/role.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Role extends SnowFlake {
4848
if (this.color === 0) {
4949
return null;
5050
}
51-
return `#${this.color.toString(16)}`;
51+
return `#${this.color.toString(16).padStart(6, "0")}`;
5252
}
5353
canManage() {
5454
if (this.guild.member.hasPermission("MANAGE_ROLES")) {

0 commit comments

Comments
 (0)