mirror of
https://github.com/mamoe/mirai.git
synced 2025-04-24 20:43:33 +08:00
fix: docs
This commit is contained in:
parent
d27f9069f6
commit
cd1c297e11
mirai-console/backend/mirai-console/src/plugin
@ -111,10 +111,11 @@ public interface PluginDescription {
|
||||
|
||||
/**
|
||||
* 此插件依赖的 Mirai Console 版本号. 为 null 时则为不限制版本. 通常建议至少限制使用同一个主版本号.
|
||||
* 如开发时依赖该插件版本 2.15.0, 则将版本限制设置为 `[2.15.0, 2.16.0)`, 表示大于等于 `2.15.0`, 小于 `2.16.0`.
|
||||
* 如开发时依赖该插件版本 2.15.0, 则将版本限制设置为 `[2.15.0, 3.0.0)`, 表示大于等于 `2.15.0`, 小于 `3.0.0`.
|
||||
*
|
||||
* 版本遵循 [语义化版本 2.0 规范](https://semver.org/lang/zh-CN/),
|
||||
*
|
||||
* @since 2.16
|
||||
* @see MiraiConsole.version
|
||||
*/
|
||||
@ResolveContext(VERSION_REQUIREMENT) public val consoleRequirement: String?
|
||||
|
@ -121,7 +121,7 @@ public inline fun JvmPluginDescription(
|
||||
*
|
||||
* #### Mirai Version Requirement (Since 2.16)
|
||||
* ```
|
||||
* dependsOn("net.mamoe.mirai.console", "[2.16.0, 3.0.0)")
|
||||
* dependsOn("net.mamoe.mirai-console", "[2.16.0, 3.0.0)")
|
||||
* ```
|
||||
*
|
||||
* @see [JvmPluginDescription]
|
||||
|
Loading…
Reference in New Issue
Block a user