useMiraiComponent
fun <A : Application> ApplicationBuilder<A>.useMiraiComponent(configurator: MiraiComponentConfiguration.(perceivable: CompletionPerceivable<A>) -> Unit = {})(source)
安装使用 MiraiComponent.
e.g.:
simbotApplication(Foo) {
useMiraiComponent()
// 或
useMiraiComponent {
// config...
}
}
Content copied to clipboard
相当于:
simbotApplication(Foo) {
install(MiraiComponent) { ... }
// ...
}
Content copied to clipboard