mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-01 20:46:08 +00:00
fix: generalize permissions.admin
This commit is contained in:
parent
412ba2b28d
commit
f8cdfd9d19
@ -38,7 +38,7 @@ export class Permissions implements BitField<bigint> {
|
||||
|
||||
/** Wheter the bitfield has the administrator flag */
|
||||
get admin(): boolean {
|
||||
return (this.bitfield & BigInt(Permissions.Flags.ADMINISTRATOR)) === this.bitfield;
|
||||
return this.has(Permissions.Flags.ADMINISTRATOR);
|
||||
}
|
||||
|
||||
get array(): PermissionString[] {
|
||||
|
Loading…
x
Reference in New Issue
Block a user