Don't fetch all users on load (again...)

This commit is contained in:
Dragory 2019-08-04 13:42:39 +03:00
parent 68380c5ac3
commit 6282c13b70

View file

@ -78,7 +78,7 @@ import { AllowedGuilds } from "./data/AllowedGuilds";
logger.info("Connecting to database");
connect().then(async conn => {
const client = new Client(`Bot ${process.env.TOKEN}`, {
getAllUsers: true,
getAllUsers: false,
restMode: true,
});
client.setMaxListeners(100);