chore: update buildNumber

This commit is contained in:
March 7th 2022-12-25 18:37:56 +07:00
parent 609c9acc78
commit 8898a91ed0
3 changed files with 6 additions and 3 deletions

View File

@ -425,7 +425,7 @@ class WebSocketShard extends EventEmitter {
this.emit(ShardEvents.READY); this.emit(ShardEvents.READY);
this.sessionId = packet.d.session_id; this.sessionId = packet.d.session_id;
this.expectedGuilds = new Set(packet.d.guilds.filter(d => d.unavailable).map(d => d.id)); this.expectedGuilds = new Set(packet.d.guilds.filter(d => d?.unavailable == true).map(d => d.id));
this.status = Status.WAITING_FOR_GUILDS; this.status = Status.WAITING_FOR_GUILDS;
this.debug(`[READY] Session ${this.sessionId}.`); this.debug(`[READY] Session ${this.sessionId}.`);
this.lastHeartbeatAcked = true; this.lastHeartbeatAcked = true;

View File

@ -69,4 +69,6 @@ Intents.FLAGS = {
AUTO_MODERATION_EXECUTION: 1 << 21, AUTO_MODERATION_EXECUTION: 1 << 21,
}; };
Intents.ALL = Object.values(Intents.FLAGS).reduce((all, p) => all | p, 0);
module.exports = Intents; module.exports = Intents;

View File

@ -1,6 +1,7 @@
'use strict'; 'use strict';
const JSONBig = require('json-bigint'); const JSONBig = require('json-bigint');
const Intents = require('./Intents');
const { randomUA } = require('../util/Constants'); const { randomUA } = require('../util/Constants');
/** /**
* Rate limit data * Rate limit data
@ -167,7 +168,7 @@ class Options extends null {
messageCacheLifetime: 0, messageCacheLifetime: 0,
messageSweepInterval: 0, messageSweepInterval: 0,
invalidRequestWarningInterval: 0, invalidRequestWarningInterval: 0,
intents: 131071, intents: Intents.ALL,
partials: ['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE', 'REACTION', 'GUILD_SCHEDULED_EVENT'], // Enable the partials partials: ['USER', 'CHANNEL', 'GUILD_MEMBER', 'MESSAGE', 'REACTION', 'GUILD_SCHEDULED_EVENT'], // Enable the partials
restWsBridgeTimeout: 5_000, restWsBridgeTimeout: 5_000,
restRequestTimeout: 15_000, restRequestTimeout: 15_000,
@ -195,7 +196,7 @@ class Options extends null {
referrer_current: '', referrer_current: '',
referring_domain_current: '', referring_domain_current: '',
release_channel: 'stable', release_channel: 'stable',
client_build_number: 163275, client_build_number: 165485,
client_event_source: null, client_event_source: null,
}, },
// ! capabilities: 4093, // ! capabilities: 4093,