summary refs log tree commit diff
path: root/gateway/src/opcodes/Identify.ts
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 12:50:45 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-10-10 12:50:45 +0200
commitbffe2a85bdd3fb628c8cfe653a785d44a31c80a6 (patch)
tree97d8466e7bd05708255ff24ee340f30668a9c849 /gateway/src/opcodes/Identify.ts
parentMerge branch 'fosscord:master' into milestoneV1/routes/implement/emojis (diff)
parent:see_no_evil: remove console.log (diff)
downloadserver-bffe2a85bdd3fb628c8cfe653a785d44a31c80a6.tar.xz
Merge branch 'master' into pr/LoboMetalurgico/424
Diffstat (limited to '')
-rw-r--r--gateway/src/opcodes/Identify.ts2
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];