Merge pull request #1471 from MathMan05/botFix

This commit is contained in:
Cyber
2026-01-21 19:35:59 +01:00
committed by GitHub

View File

@@ -139,7 +139,7 @@ export class Permissions extends BitField {
static rolePermission(roles: Role[]) {
// adds all permissions of all roles together (Bit OR)
return roles.reduce((permission, role) => permission | BigInt(role.permissions), BigInt(0));
return roles.reduce((permission, role) => permission | BigInt(role.permissions || "0"), BigInt(0));
}
static finalPermission({