Add error handler for Eris errors
Previously this was done within Knub, but Knub no longer automatically places an error handler for Eris since v30.0.0-beta.24
This commit is contained in:
parent
dbcd5e7de2
commit
0c73587b25
1 changed files with 4 additions and 0 deletions
|
@ -147,6 +147,10 @@ connect().then(async () => {
|
|||
}
|
||||
});
|
||||
|
||||
client.on("error", err => {
|
||||
logger.error(`[ERIS] ${String(err)}`);
|
||||
});
|
||||
|
||||
const allowedGuilds = new AllowedGuilds();
|
||||
const guildConfigs = new Configs();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue