mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user