code is a valid CloseCode or 1005 (closed without a reason)bot.on('close', (code) => {
console.log('bot has disconnected from the game with code', code);
});
You can compare this to the CloseCode object.
code is a valid CloseCode or 1005 (closed without a reason)bot.on('close', (code) => {
console.log('bot has disconnected from the game with code', code);
});
You can compare this to the CloseCode object.