Skip to content

Sharding

KrispPurg edited this page Aug 2, 2020 · 3 revisions

Sharding!

Sharding are a great and useful way to prevent a gateway connection from being too busy, including performance saves: https://discord.com/developers/docs/topics/gateway#sharding

If you want to shard your discord bot you have to first pass max_shards = with the provided amount of shards (must be an Option type e.g. some 2) in startSession and then boom! you're done, if there are performance issues read the performance wiki

Clone this wiki locally