gateways

fun gateways(gatewayBuilder: (resources: ClientResources, shards: List<Int>) -> List<Gateway>)(source)

Configures the Gateway for each shard.

Kord(token) {
gateway { resources, shards ->
shards.map { DefaultGateway(resources) }
}
}