diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-10 11:08:55 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-10-10 11:08:55 +0200 |
commit | 57c9813f2fca9b8f4e02f09d71515bc7f59b4010 (patch) | |
tree | fabc44bb4a7c1470f1244dffcfdcc40e80e29c7c /gateway/src/opcodes/Identify.ts | |
parent | :art: clean up imports + classes (diff) | |
download | server-57c9813f2fca9b8f4e02f09d71515bc7f59b4010.tar.xz |
:bug: convert bigint literal to object
Diffstat (limited to '')
-rw-r--r-- | gateway/src/opcodes/Identify.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/src/opcodes/Identify.ts b/gateway/src/opcodes/Identify.ts index b81c7bf4..5d5b72d1 100644 --- a/gateway/src/opcodes/Identify.ts +++ b/gateway/src/opcodes/Identify.ts @@ -41,7 +41,7 @@ export async function onIdentify(this: WebSocket, data: Payload) { return this.close(CLOSECODES.Authentication_failed); } this.user_id = decoded.id; - if (!identify.intents) identify.intents = 0b11111111111111n; + if (!identify.intents) identify.intents = BigInt("0b11111111111111"); this.intents = new Intents(identify.intents); if (identify.shard) { this.shard_id = identify.shard[0]; |