* Update Ready.js

* Update ClientDataManager.js
This commit is contained in:
Gus Caplan
2017-08-17 09:28:01 -07:00
committed by Crawl
parent 23d42d7e22
commit 5ce0def9d0
2 changed files with 1 additions and 2 deletions

View File

@@ -19,6 +19,7 @@ class ClientDataManager {
const already = this.client.guilds.has(data.id);
const guild = new Guild(this.client, data);
this.client.guilds.set(guild.id, guild);
if (!this.client.user.bot && this.client.options.sync) this.client.syncGuilds([guild]);
if (this.pastReady && !already) {
/**
* Emitted whenever the client joins a guild.

View File

@@ -44,8 +44,6 @@ class ReadyHandler extends AbstractHandler {
}
}
if (!client.user.bot && client.options.sync) client.setInterval(client.syncGuilds.bind(client), 30000);
if (!client.users.has('1')) {
client.dataManager.newUser({
id: '1',