BaseKordBuilder

abstract class BaseKordBuilder(source)

Inheritors

Properties

Link copied to clipboard
Link copied to clipboard

The CoroutineDispatcher kord uses to launch suspending tasks. Dispatchers.Default by default.

Link copied to clipboard

The default strategy used by entities to retrieve entities. EntitySupplyStrategy.cacheWithRestFallback by default.

Link copied to clipboard

The event flow used by Kord.eventFlow to publish events.

Link copied to clipboard

The client used for building Gateways and RequestHandlers. A default implementation will be used when not set.

Link copied to clipboard

Enables stack trace recovery on the currently defined RequestHandler.

Link copied to clipboard

Functions

Link copied to clipboard
open suspend fun build(): Kord
Link copied to clipboard
fun cache(builder: KordCacheBuilder.(resources: ClientResources) -> Unit)

Configures the DataCache for caching.

Link copied to clipboard
fun gateways(gatewayBuilder: (resources: ClientResources, shards: List<Int>) -> List<Gateway>)

Configures the Gateway for each shard.

Link copied to clipboard
fun requestHandler(handlerBuilder: (resources: ClientResources) -> RequestHandler)

Configures the RequestHandler for the RestClient.

Link copied to clipboard
fun sharding(shards: (recommended: Int) -> Shards)

Configures the shards this client will connect to, by default 0 until recommended. This can be used to break up to client into multiple processes.