Open
Description
My bot has 4k servers so unfortunately the current implementation doesn't allow me to use my bot. I changed the disconnect to show me what was wrong:
bot.on('disconnect', function(e) {
console.log("Bot disconnected, reconnecting...", e);
setTimeout(function(){
bot.connect(); //Auto reconnect after 5 seconds
},5000);
});
More info: https://discordapp.com/developers/docs/topics/gateway#sharding