fix: generalize permissions.admin

This commit is contained in:
Yuzu 2022-09-08 00:05:35 -05:00
parent 412ba2b28d
commit f8cdfd9d19

View File

@ -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[] {