mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-14 02:23:31 +01:00
Actually add GUILD_SYNC
This commit is contained in:
@@ -21,6 +21,12 @@ class ReadyHandler extends AbstractHandler {
|
||||
client.dataManager.newChannel(privateDM);
|
||||
}
|
||||
|
||||
if (!client.user.bot) {
|
||||
client.setInterval(client.syncGuilds.bind(client), 30000);
|
||||
}
|
||||
|
||||
client.once('ready', client.syncGuilds.bind(client));
|
||||
|
||||
this.packetManager.ws.sessionID = data.session_id;
|
||||
|
||||
this.packetManager.ws.checkIfReady('abc');
|
||||
|
||||
Reference in New Issue
Block a user