Fixed bug where 'on' from the discord client was undefined

This commit is contained in:
plane000
2018-10-26 21:14:40 +01:00
parent 3f1a80e83b
commit 5c9cf2a310

View File

@@ -18,6 +18,8 @@ async function init() {
// Logger.debug(JSON.stringify(await Database.Guilds.deleteGuild(1234), null, 4));
const client = new Discord.Client();
const eventHandler = new Events(client);
const eventHandler = new Events();
await eventHandler.init(client);
eventHandler.handle();
}