fixing tests and perm check bug

This commit is contained in:
Skillz
2020-11-18 13:08:47 -05:00
parent 0a040fb8a8
commit a8c74c82e5
2 changed files with 4 additions and 6 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ export function channelOverwriteHasPermission(
if (overwrite) {
const allowBits = overwrite.allow;
const denyBits = overwrite.deny;
if (BigInt(denyBits) & BigInt(perm)) return false;
if (BigInt(allowBits) & BigInt(perm)) return true;
if (BigInt(denyBits) & BigInt(Permissions[perm])) return false;
if (BigInt(allowBits) & BigInt(Permissions[perm])) return true;
}
return false;
});