Work In Progress
This documentation is in beta. It's missing lots of content, search is broken, and many links go nowhere. These problems will be fixed before release, but there's plenty of work left!
Skip to main content

Components

The components { } builder allows you to change the component registry by providing your own implementation.

ExtensibleBot(TOKEN) {
// ...

components {
registry(::MyComponentRegistrySubclass)
}
}

Builders

registry { ... }Lambda Returns: ComponentRegistry

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