mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
parent
23d42d7e22
commit
5ce0def9d0
2 changed files with 1 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue