CacheBuilder

Builder used for configuring the bot's caching options.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Number of messages to keep in the cache. Defaults to 10,000.

Link copied to clipboard
var defaultStrategy: EntitySupplyStrategy<EntitySupplier>

The default Kord caching strategy - defaults to caching REST when an entity doesn't exist in the cache.

Functions

Link copied to clipboard
fun kord(builder: KordCacheBuilder.(resources: ClientResources) -> Unit)

DSL function allowing you to customize Kord's cache.

Link copied to clipboard
fun transformCache(builder: suspend Kord.(cache: DataCache) -> Unit)

DSL function allowing you to interact with Kord's DataCache before it connects to Discord.