Skip to main content

Data Adapter

The dataAdapter { } builder allows you to register a data adapter, responsible for storing the data handled by storage units.

ExtensibleBot(TOKEN) {
// ...

dataAdapter(::TomlDataAdapter)
}

Builders

dataAdapter { ... }Lambda Returns: DataAdapter

Register a callback that constructs and returns an alternative implementation of the DataAdapter type, if needed.