Skip to content

Sharding Support #60

Open
Open
@JMTK

Description

@JMTK

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);
    });

image

More info: https://discordapp.com/developers/docs/topics/gateway#sharding

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions