ci-release-helper/changelogs/2.13.0-RC.md
2.13.0-RC 包含:
mirai-core-api 去除了对 kotlinx-coroutines-jdk8 的依赖.nextEvent 和 nextEventOrNull 新增 intercept 参数, 可在满足条件时拦截事件 (#1668, #2177 by @Nambers)好友分组定名为
FriendGroup.
Friend.friendGroup 获取该好友所属分组.Bot.friendGroups 获取好友分组列表并操作分组.Group.active 获取群的活跃数据.Member.active 获取该成员的活跃数据.AbstractExternalResource.input 的默认实现
在实现自定义
ExternalResource时可能有帮助
ANDROID_WATCH 和 MACOS 的协议信息 (#2228 by @cssxsh)HeartbeatFailedException 的问题 (#2175)现在不再有循环引用, 而且更简洁
CancellationException将会被替换为真实原因
此修复也包含在 2.12.3
自 2.13.0-M1
也公开了进度条 API 供插件使用. 见
MiraiConsole.newProcessProgress().
/login 登录时使用可用的自动登录配置 (#2209 by @cssxsh)mirai-console-frontend-baseMiraiLogger.Factory API 创建日志以帮助区分 mirai-console 和 mirai-console-loader
新增 Core 模拟测试框架 mirai-core-mock. 版本号与 mirai-core 相同. 相关文档 (#1304, #1521)
使用模拟测试框架可以构造虚拟 Bot, 模拟收到各种事件.