Commit f1a5bc05 authored by Him188's avatar Him188

Add docs

parent 357e7d77
...@@ -49,6 +49,8 @@ abstract class BotNetworkHandler : CoroutineScope { ...@@ -49,6 +49,8 @@ abstract class BotNetworkHandler : CoroutineScope {
/** /**
* 初始化获取好友列表等值. * 初始化获取好友列表等值.
*
* 不要使用这个 API. 它会在登录完成后被自动调用.
*/ */
@MiraiInternalAPI @MiraiInternalAPI
open suspend fun init() { open suspend fun init() {
......
...@@ -20,7 +20,14 @@ internal val factory: BotFactory = run { ...@@ -20,7 +20,14 @@ internal val factory: BotFactory = run {
No BotFactory found. Please ensure that you've added dependency of protocol modules. No BotFactory found. Please ensure that you've added dependency of protocol modules.
Available modules: Available modules:
- net.mamoe:mirai-core-timpc - net.mamoe:mirai-core-timpc
- net.mamoe:mirai-core-qqandroid (recommended)
You should have at lease one protocol module installed. You should have at lease one protocol module installed.
-------------------------------------------------------
找不到 BotFactory. 请确保你依赖了至少一个协议模块.
可用的协议模块:
- net.mamoe:mirai-core-timpc
- net.mamoe:mirai-core-qqandroid (推荐)
请添加上述任一模块的依赖(与 mirai-core 版本相同)
""".trimIndent() """.trimIndent()
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment