🐛 convert bigint literal to object

This commit is contained in:
Flam3rboy
2021-10-10 11:08:55 +02:00
parent dc85a79498
commit a61cbbe40c
5 changed files with 12 additions and 7 deletions
+1 -1
View File
@@ -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];