mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: permissions.array
This commit is contained in:
parent
4c058dc2d0
commit
c47ef00c33
@ -43,7 +43,7 @@ export class Permissions implements BitField<bigint> {
|
||||
get array(): PermissionString[] {
|
||||
// unsafe cast, do not edit
|
||||
const permissions = Object.keys(Permissions.Flags) as PermissionString[];
|
||||
return permissions.filter(bit => typeof bit === 'number' && this.has(bit));
|
||||
return permissions.filter(bit => this.has(bit));
|
||||
}
|
||||
|
||||
add(...bits: PermissionResolvable[]): this {
|
||||
|
Loading…
x
Reference in New Issue
Block a user