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.