Skip to content

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()