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
+1 -1
View File
@@ -2,7 +2,7 @@ name: Discordeno
description: >-
Discord Deno TypeScript API library wrapper(Officially vetted library by
Discord Team) https://discordeno.netlify.app
version: 8.7.1
version: 8.7.3
stable: true
files:
- ./src/**/*
+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(),
})),