From f8cdfd9d19e83c23c2e413aac731f55d1dcafd0c Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 8 Sep 2022 00:05:35 -0500 Subject: [PATCH] fix: generalize permissions.admin --- packages/core/src/structures/special/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/structures/special/permissions.ts b/packages/core/src/structures/special/permissions.ts index f8931f5..d13a37e 100644 --- a/packages/core/src/structures/special/permissions.ts +++ b/packages/core/src/structures/special/permissions.ts @@ -38,7 +38,7 @@ export class Permissions implements BitField { /** 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[] {