2.7.0
#1493
Replies: 1 comment 1 reply
-
Action是不是跑崩了,打了个红叉。MavenRepository中搜不到2.7.0😂 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mirai-core
不兼容变更
GroupSettings.entranceAnnouncement
, 以 2.7-M2 加入的Announcements
代替 (group.setting.entranceAnnouncement 取不到群公告 #1398, 弃用GroupSettings.entranceAnnouncement
#1399)Voice
, 以新增的Audio
代替. 完全保留兼容性.NormalMember.kick
) 时默认不将目标群员加入黑名单 (支持在踢出群成员时选择是否拉黑 #1457)MessageSubscribersBuilder
的startsWith
和endsWith
现在不再 trim 参数. (fix: do trimming properly instartsWith
&endsWith
, #1282 #1314)新特性
消息
Audio
(IntroduceAudio
for new API, revert changes onVoice
in 2.7-M2 #1452)VoiceSupported
接口, 由Group
与Friend
实现Face
) (Update system face #1260)subscribeUserMessages
监听UserMessage
Image
实现hashCode
与equals
, 仅判断Image.imageId
(为Image
添加equals
和hashCode
#1302)MusicShare
支持酷狗音乐和酷我音乐 (feat: support kugou,kuwo music share #1228)群操作
Group.announcements
(群公告的lowLevelApi #138, 添加群公告 API #140, GroupAnnoucement #1141, Redesign Announcement API #1389)NormalMember.kick
) 时选择是否加入黑名单 (支持在踢出群成员时选择是否拉黑 #1457)其他
META-INF/MANIFEST.MF
里存储版本信息 (在发布的 jar 中附带版本信息 #1351, Add version info inMETA-INF/MANIFEST.MF
#1355)BotFactory.newBot
(BotFactory.newBot
无法调用BotConfiguration.inheritCoroutineContext
#1233, Add inlineBotFactory.newBot
for Kotlin DSL. fix #1233 #1234)优化和修复
更新到 Kotlin 1.5, 更新相关依赖 (快上 Kotlin 1.5 #1245, Kotlin 1.5 and dependencies updates #1246, Kotlin 1.5 and dependencies updates mirai-console#346)
MessageChain
变为sealed interface
MessageEvent
变为sealed interface
增加
@NotStableForInheritance
标注不应该被继承的接口 (Add@NotStableForInheritance
and apply it to suitable classes #1385)删除意外添加的 kotlinx.serialization 编译器依赖 (fix: serialization plugin should not be put into runtime classpath #1197)
文档更新 (Review docs and improve readability #1291, Clearify docs for
ExternalResource
andRemoteFile
#1248, ...)网络层
ReqMSFOffline
时没有重连的问题ExceptionInPacketCodecException
) (ExceptionInPacketCodecException(cause=java.lang.IllegalArgumentException: data must len % 8 == 0 && len >= 16 but given -1) #1405, Fix #1405, before it is a compiler undefined behavior #1408)syncMessageSvc
不应阻止初始化 #1253)MessageSyncEvent
日志内容错误 #1380)Contact
IMirai.getRawGroupAnnouncements
) (Mirai.getRawGroupAnnouncements 取不到群公告 #1322, Fix #1322, remove redundant cookie #1372)Message
MessageChain.get
,MessageChain.contains
的性能MessageReceipt.source.originalMessage
的问题 (协议内部消息类型被暴露给MessageReceipt.source.originalMessage
#1371)Face.toString()
现在返回类似[可怜]
, 而不是[mirai:face:123]
(Face.toString
: usecontentToString()
for better readability #1382)At
昵称错误的问题 (转发消息@信息错误 #1137)Event
EventChannel.filter
Java 版在执行阻塞调用时会阻塞协程调度的问题BotOnlineEvent
,BotOfflineEvent
以及BotReloginEvent
广播的时机及顺序EventChannelKotlinExtensions
的引用歧义BotOnlineEvent
有可能在登录成功后好一会才会推送的问题 (BotOnlineEvent 事件在程序运行后好一会才会推送 #1051)MemberCardChangeEvent
的问题 (没有群名片的群员在说话时会触发MemberCardChangeEvent #1151, Introduce MemberNick class and correct nameCard decoding, Fix #1151 #1231)MessageSubscribersBuilder.has
报错ClassCastException
的问题 (Subscriber DSL 的 has<*> 不能正常捕获消息 #1223)mirai-console
优化和修复
suspend
的指令方法 (v2.6.2 JSimpleCommand/JCompositeCommand 在windows和linux平台运行行为不一致 mirai-console#341)ReadOnlyPluginConfig
(Fix: builtins config use ReadOnlyPluginConfig mirai-console#375)mirai-console-gradle
新特性
简化
JSimpleCommand
的构造器 (Add@JvmOverloads
forJSimpleCommand
constructor and add default … mirai-console#349)允许用户覆盖 Kotlin 版本号 (而非与 mirai-console 编译时的版本号相同) (使用 mirai-console Gradle 插件后无法指定 Kotlin 版本 mirai-console#367)
在生成插件项目时:
test/kotlin/RunTerminal.kt
以帮助测试 (在生成项目时写出 RunTerminal mirai-console#362, 建议完善Mirai插件自动生成的.gitignore文件 mirai-console#366).gitignore
不兼容变更
mavenCentral
仓库 (判断群 580202355 的群员 3104026189 的权限失败: 0x00000001(1). #389)优化和修复
LoginCommand
登录完成后将结果同时发送给指令执行人和控制台 (LoginCommand: Send login results also to ConsoleCommandSender mirai-console#348)感谢外部贡献者:
This discussion was created from the release 2.7.0.
Beta Was this translation helpful? Give feedback.
All reactions