fixed function loading error
parent
6992d88a3f
commit
633d667386
|
@ -56,7 +56,7 @@ export default class Client extends Eris.Client {
|
||||||
functions.forEach(async (func) => {
|
functions.forEach(async (func) => {
|
||||||
if (func === 'index.ts') return;
|
if (func === 'index.ts') return;
|
||||||
try {
|
try {
|
||||||
require(`./functions/${func}`).default(this);
|
(require(`./functions/${func}`).default)(this);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
await this.util.handleError(error);
|
await this.util.handleError(error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue