mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 11:03:30 +01:00
@@ -19,6 +19,7 @@ class ClientDataManager {
|
|||||||
const already = this.client.guilds.has(data.id);
|
const already = this.client.guilds.has(data.id);
|
||||||
const guild = new Guild(this.client, data);
|
const guild = new Guild(this.client, data);
|
||||||
this.client.guilds.set(guild.id, guild);
|
this.client.guilds.set(guild.id, guild);
|
||||||
|
if (!this.client.user.bot && this.client.options.sync) this.client.syncGuilds([guild]);
|
||||||
if (this.pastReady && !already) {
|
if (this.pastReady && !already) {
|
||||||
/**
|
/**
|
||||||
* Emitted whenever the client joins a guild.
|
* 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')) {
|
if (!client.users.has('1')) {
|
||||||
client.dataManager.newUser({
|
client.dataManager.newUser({
|
||||||
id: '1',
|
id: '1',
|
||||||
|
|||||||
Reference in New Issue
Block a user