Sharding

interface Sharding(source)

Client-side initial sharding configuration

Types

Link copied to clipboard
object All : Sharding

Kiscord should spawn all recommended shards

Link copied to clipboard
object Companion
Link copied to clipboard
abstract class Custom : Sharding

Base class for custom sharding strategies

Link copied to clipboard
object Single : Sharding

Kiscord should spawn one (and only one) shard

Link copied to clipboard
class Total(val totalShards: Int) : Sharding

Kiscord should spawn all totalShards shards

Functions

Link copied to clipboard

Predicate that should allow or forbid to spawn specified shard (called totalShards times)

Properties

Link copied to clipboard
open val totalShards: Int?

Total shards count that designates to connect to the gateway, or null if gateway default should be used

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard