From 633d667386b3e8206d7353d7de722a6850b68d06 Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 28 Oct 2019 22:11:08 +0000 Subject: [PATCH] fixed function loading error --- src/Client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client.ts b/src/Client.ts index 5e813e0..4af6ff8 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -56,7 +56,7 @@ export default class Client extends Eris.Client { functions.forEach(async (func) => { if (func === 'index.ts') return; try { - require(`./functions/${func}`).default(this); + (require(`./functions/${func}`).default)(this); } catch (error) { await this.util.handleError(error); }