mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Fix some stuff
This commit is contained in:
parent
457b9600f2
commit
e460e5e853
1 changed files with 2 additions and 2 deletions
|
|
@ -44,7 +44,6 @@ class ReadyHandler extends AbstractHandler {
|
|||
}
|
||||
|
||||
if (!client.user.bot && client.options.sync) client.setInterval(client.syncGuilds.bind(client), 30000);
|
||||
client.once('ready', client.syncGuilds.bind(client));
|
||||
|
||||
if (!client.users.has('1')) {
|
||||
client.dataManager.newUser({
|
||||
|
|
@ -63,9 +62,10 @@ class ReadyHandler extends AbstractHandler {
|
|||
client.ws.connection.triggerReady();
|
||||
}, 1200 * data.guilds.length);
|
||||
|
||||
client.setMaxListeners(data.guilds.length + 1);
|
||||
client.setMaxListeners(data.guilds.length + 10);
|
||||
|
||||
client.once('ready', () => {
|
||||
client.syncGuilds();
|
||||
client.setMaxListeners(10);
|
||||
client.clearTimeout(t);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue