Skip to content
Classcorev0.12.0

Kv

The bot's key-value store, or one prefixed slice of it. core.kv holds your handlers' records. A plugin's this.kv holds the plugin's.

class Kv

Member visibility

Filter class members by access level.

Showing members with Protected visibility and higher.

Properties

Methods

driver

What you passed as config.kv. Register its type in KvTypes to call the library's own methods on it.

public readonly driver: ConfiguredDriver

collection()

Records of one type under name. Pass the type argument. A record type holding a function, Map, Set, or bigint fails to compile here.

public collection<TRecord>(
    name: CollectionName<TRecord>
): KvCollection<TRecord>