disagreement/docs/sharding.md
Slipstream 1464937f6f
Some checks failed
Deploy MkDocs / deploy (push) Has been cancelled
Add async start and sync run (#94)
2025-06-15 18:11:44 -06:00

419 B

Sharding

disagreement supports splitting your gateway connection across multiple shards. Use Client with the shard_count parameter when you want to control the count manually.

AutoShardedClient asks Discord for the recommended number of shards at runtime and configures the ShardManager automatically.

import disagreement

bot = disagreement.AutoShardedClient(token="YOUR_TOKEN")
bot.run()