mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-19 13:56:43 +02:00
Disconnects should be errors
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ client.on('ready', () => {
|
||||
});
|
||||
|
||||
client.on('disconnect', event => {
|
||||
console.log(`[DISCONNECT] Shard ${client.shard.id} disconnected with code ${event.code}.`);
|
||||
console.error(`[DISCONNECT] Shard ${client.shard.id} disconnected with code ${event.code}.`);
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user