useOneBot11Component
fun ApplicationFactoryConfigurer<*, *, *>.useOneBot11Component(configurator: ConfigurerFunction<OneBot11ComponentConfiguration>? = null)(source)
在 ApplicationBuilder 中安装使用 OneBot11Component。
usage:
simbotApplication(Foo) {
useOneBot11Component()
// 或
useOneBot11Component { ... }
}
Content copied to clipboard
相当于:
simbotApplication(Foo) {
install(OneBot11Component) { ... }
}
Content copied to clipboard