fix a bug in big int bits

This commit is contained in:
Skillz
2020-09-08 10:41:43 -04:00
parent 083a351ce2
commit 22723d4bee
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -109,11 +109,11 @@ export async function createGuildChannel(
permission_overwrites: options?.permission_overwrites?.map((perm) => ({
...perm,
allow: perm.allow.reduce(
(bits, p) => bits & BigInt(Permissions[p]),
(bits, p) => bits |= BigInt(Permissions[p]),
BigInt(0),
).toString(),
deny: perm.deny.reduce(
(bits, p) => bits & BigInt(Permissions[p]),
(bits, p) => bits |= BigInt(Permissions[p]),
BigInt(0),
).toString(),
})),