mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
Move to v6 protocol
This commit is contained in:
@@ -91,7 +91,6 @@ class WebSocketManager {
|
|||||||
checkIfReady() {
|
checkIfReady() {
|
||||||
if (this.status !== Constants.Status.READY) {
|
if (this.status !== Constants.Status.READY) {
|
||||||
let unavailableCount = 0;
|
let unavailableCount = 0;
|
||||||
|
|
||||||
for (const guildID in this.client.store.data.guilds) {
|
for (const guildID in this.client.store.data.guilds) {
|
||||||
unavailableCount += this.client.store.data.guilds[guildID].available ? 0 : 1;
|
unavailableCount += this.client.store.data.guilds[guildID].available ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ exports.DefaultOptions = {
|
|||||||
$referring_domain: '',
|
$referring_domain: '',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
protocol_version: 4,
|
protocol_version: 6,
|
||||||
max_message_cache: 200,
|
max_message_cache: 200,
|
||||||
rest_ws_bridge_timeout: 5000,
|
rest_ws_bridge_timeout: 5000,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user