code is a valid CloseCode or 1005 (closed without a reason)bot.on('leave', (code) => {
console.log('bot has left 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('leave', (code) => {
console.log('bot has left the game with code', code);
});
You can compare this to the CloseCode object.