Components
The components { } builder allows you to change the component registry by providing your own implementation.
ExtensibleBot(TOKEN) {
// ...
components {
registry(::MyComponentRegistrySubclass)
}
}
Builders
Register a callback that constructs and returns an alternative implementation of the ComponentRegistry
type, if needed.