mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 16:43:31 +01:00
Migrate most of the Client Data Store to Clien
This commit is contained in:
@@ -167,11 +167,11 @@ class WebSocketManager {
|
||||
* the `READY` event.
|
||||
* @returns {null}
|
||||
*/
|
||||
checkIfReady() {
|
||||
checkIfReady(a) {
|
||||
if (this.status !== Constants.Status.READY) {
|
||||
let unavailableCount = 0;
|
||||
for (const guildID in this.client.store.data.guilds) {
|
||||
unavailableCount += this.client.store.data.guilds[guildID].available ? 0 : 1;
|
||||
for (const guildID of this.client.guilds.keys()) {
|
||||
unavailableCount += this.client.guilds.get(guildID).available ? 0 : 1;
|
||||
}
|
||||
|
||||
if (unavailableCount === 0) {
|
||||
|
||||
Reference in New Issue
Block a user