mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 07:30:09 +08:00
Fix binary compatibility
This commit is contained in:
parent
e35820d035
commit
17bbcdb3dc
@ -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
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user