mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fix a bug in big int bits
This commit is contained in:
@@ -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/**/*
|
||||
|
||||
@@ -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(),
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user