mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
Update index.js
This commit is contained in:
parent
d005cc48d1
commit
b6c1a9b10d
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`)));
|
||||
|
Loading…
Reference in New Issue
Block a user