16 lines
419 B
Markdown
16 lines
419 B
Markdown
# 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.
|
|
|
|
```python
|
|
import disagreement
|
|
|
|
bot = disagreement.AutoShardedClient(token="YOUR_TOKEN")
|
|
bot.run()
|
|
```
|