From fb5c29a82792b2f40238133b883c8c7b5944e7b9 Mon Sep 17 00:00:00 2001 From: Dragory Date: Tue, 31 Jul 2018 20:58:48 +0300 Subject: [PATCH] fix: load all guild members on start --- src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c78770ce..043b3271 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,9 @@ import knex from "./knex"; // Run latest database migrations logger.info("Running database migrations"); knex.migrate.latest().then(() => { - const client = new Client(process.env.TOKEN); + const client = new Client(process.env.TOKEN, { + getAllUsers: true + }); client.setMaxListeners(100); const bot = new Knub(client, {