mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: unsafe thing
This commit is contained in:
parent
f8cdfd9d19
commit
a4c776ffa4
@ -113,7 +113,7 @@ export class Permissions implements BitField<bigint> {
|
||||
case 'object':
|
||||
return Permissions.resolve(
|
||||
bit
|
||||
.map(p => BigInt(Permissions.Flags[p]))
|
||||
.map(p => typeof p === 'string' ? BigInt(Permissions.Flags[p]) : BigInt(p))
|
||||
.reduce((acc, cur) => acc | cur, Permissions.None)
|
||||
);
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user