1
0
Fork 0

fixed function loading error

refactor/models
Bsian 2019-10-28 22:11:08 +00:00
parent 6992d88a3f
commit 633d667386
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}