Don't load all members on startup

Should improve start times significantly
This commit is contained in:
Dragory 2019-04-20 19:54:55 +03:00
parent d30fbbbbaa
commit 51a77b0082

View file

@ -84,7 +84,7 @@ connect().then(async conn => {
await conn.runMigrations();
const client = new Client(`Bot ${process.env.TOKEN}`, {
getAllUsers: true,
getAllUsers: false,
restMode: true,
});
client.setMaxListeners(100);