Fix binary compatibility

This commit is contained in:
Him188 2020-05-05 16:45:41 +08:00
parent e35820d035
commit 17bbcdb3dc
2 changed files with 4 additions and 2 deletions

View File

@ -39,7 +39,7 @@ class GroupMessageEvent(
check(source is OnlineMessageSource.Incoming.FromGroup) { "source provided to a GroupMessage must be an instance of OnlineMessageSource.Incoming.FromGroup" }
}
inline val group: Group get() = sender.group
override val group: Group get() = sender.group
override val bot: Bot get() = sender.bot
override val subject: Group get() = group

View File

@ -208,7 +208,9 @@ abstract class FriendMessage : MessageEvent()
level = DeprecationLevel.ERROR
)
@Suppress("DEPRECATION_ERROR")
abstract class GroupMessage : MessageEvent()
abstract class GroupMessage : MessageEvent() {
abstract val group: Group
}
@PlannedRemoval("1.2.0")
@Deprecated(