mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 00:31:27 +03:00
Update index.js
This commit is contained in:
4
index.js
4
index.js
@@ -246,6 +246,10 @@ client.on('message', async message => {
|
||||
}
|
||||
|
||||
});
|
||||
client.on('error', error => {
|
||||
console.log(leeks.colors.bgYellow(leeks.colors.black(`[WARN] Potential error detected\n(likely Discord API connection issue)`)));
|
||||
console.error(leeks.colors.red(`[ERROR] Client error:\n${error}`));
|
||||
});
|
||||
|
||||
process.on('unhandledRejection', error => {
|
||||
console.log(leeks.colors.yellow(leeks.styles.bold(`[WARN] An error was not caught`)));
|
||||
|
Reference in New Issue
Block a user