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: >-
|
description: >-
|
||||||
Discord Deno TypeScript API library wrapper(Officially vetted library by
|
Discord Deno TypeScript API library wrapper(Officially vetted library by
|
||||||
Discord Team) https://discordeno.netlify.app
|
Discord Team) https://discordeno.netlify.app
|
||||||
version: 8.7.1
|
version: 8.7.3
|
||||||
stable: true
|
stable: true
|
||||||
files:
|
files:
|
||||||
- ./src/**/*
|
- ./src/**/*
|
||||||
|
|||||||
@@ -109,11 +109,11 @@ export async function createGuildChannel(
|
|||||||
permission_overwrites: options?.permission_overwrites?.map((perm) => ({
|
permission_overwrites: options?.permission_overwrites?.map((perm) => ({
|
||||||
...perm,
|
...perm,
|
||||||
allow: perm.allow.reduce(
|
allow: perm.allow.reduce(
|
||||||
(bits, p) => bits & BigInt(Permissions[p]),
|
(bits, p) => bits |= BigInt(Permissions[p]),
|
||||||
BigInt(0),
|
BigInt(0),
|
||||||
).toString(),
|
).toString(),
|
||||||
deny: perm.deny.reduce(
|
deny: perm.deny.reduce(
|
||||||
(bits, p) => bits & BigInt(Permissions[p]),
|
(bits, p) => bits |= BigInt(Permissions[p]),
|
||||||
BigInt(0),
|
BigInt(0),
|
||||||
).toString(),
|
).toString(),
|
||||||
})),
|
})),
|
||||||
|
|||||||
Reference in New Issue
Block a user