Data Adapter
The dataAdapter
builder allows you to register a custom data adapter class, by providing a callable object (usually a constructor) that returns an alternative implementation of DataAdapter
.
For more information on data adapters and what they do, see the dedicated documentation.
ExtensibleBot(TOKEN) {
// ...
dataAdapter(::TomlDataAdapter)
}
Last modified: 20 November 2024