diff --git a/src/class/Client.ts b/src/class/Client.ts index 5e96d72..db791ad 100644 --- a/src/class/Client.ts +++ b/src/class/Client.ts @@ -59,8 +59,11 @@ export default class Client extends Eris.Client { } public async errorEvents() { - process.on('unhandledRejection', (error) => { - this.signale.error(error); + process.on('unhandledRejection', (error: Error) => { + this.util.handleError(error); + }); + this.on('error', (error) => { + this.util.handleError(error); }); }