From 3ef0caf4801b03dd19af22596edca8a22167809d Mon Sep 17 00:00:00 2001 From: MathMan05 Date: Tue, 9 Sep 2025 09:39:28 -0500 Subject: [PATCH] fix a permisions saving bug --- src/webpage/role.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webpage/role.ts b/src/webpage/role.ts index 6dec4f8..2d87ba5 100644 --- a/src/webpage/role.ts +++ b/src/webpage/role.ts @@ -194,7 +194,8 @@ class RoleList extends Buttons { } else { this.permission = new Permissions("0"); } - this.makeguildmenus(options); + //TODO maybe make channels work correctly with this (role permissions aren't currently saved) + if (!channel) this.makeguildmenus(options); for (const thing of Permissions.info()) { options.options.push(new PermissionToggle(thing, this.permission, options)); } @@ -280,6 +281,7 @@ class RoleList extends Buttons { }); form.addPreprocessor((obj: any) => { obj.color = Number("0x" + colorI.colorContent.substring(1)); + obj.permissions = this.permission.allow.toString(); console.log(obj.color); });