Sharding

What Is Sharding?

Sharding is the method in which a bot's code is 'split' into multiple instances of itself. When a bot is sharded, each shard handles only a portion of all the servers that the bot is in.

When Is Sharding Needed?

Sharding is usually needed when a bot hits 2,000-2,500 servers.

How Do I Shard With d.js-BDScript?

You don't have to do anything, d.js-BDScript has the ability to shard automatically (when needed)!

How Do I Find What Shard A Server Is On?

You can use the $shardID function, to get what shard a server is on.

If you need help sharding, please contact us in our Discord Server. We are happy to help!

Last updated

Was this helpful?