diff --git a/mirai-core/src/main/java/net/mamoe/mirai/event/events/group/GroupMessageEvent.kt b/mirai-core/src/main/java/net/mamoe/mirai/event/events/group/GroupMessageEvent.kt index 3a2ee5f5b..d2b4eb07c 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/event/events/group/GroupMessageEvent.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/event/events/group/GroupMessageEvent.kt @@ -12,14 +12,14 @@ import net.mamoe.mirai.message.defaults.MessageChain class GroupMessageEvent(bot: Bot, group: Group, val sender: QQ, val message: MessageChain) : GroupEvent(bot, group) { @JvmSynthetic - suspend fun reply(message: Message) = group.sendMessage(message) + suspend inline fun reply(message: Message) = group.sendMessage(message) @JvmSynthetic - suspend fun reply(message: String) = group.sendMessage(message) + suspend inline fun reply(message: String) = group.sendMessage(message) @JvmSynthetic - suspend fun reply(message: List) = group.sendMessage(message) + suspend inline fun reply(message: List) = group.sendMessage(message) @JvmSynthetic - suspend fun reply(message: MessageChain) = group.sendMessage(message) + suspend inline fun reply(message: MessageChain) = group.sendMessage(message) } diff --git a/mirai-core/src/main/java/net/mamoe/mirai/event/events/qq/FriendMessageEvent.kt b/mirai-core/src/main/java/net/mamoe/mirai/event/events/qq/FriendMessageEvent.kt index 7844e7a4e..aa13b75aa 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/event/events/qq/FriendMessageEvent.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/event/events/qq/FriendMessageEvent.kt @@ -11,14 +11,14 @@ import net.mamoe.mirai.message.defaults.MessageChain class FriendMessageEvent(bot: Bot, sender: QQ, val message: MessageChain) : FriendEvent(bot, sender) { @JvmSynthetic - suspend fun reply(message: Message) = sender.sendMessage(message) + suspend inline fun reply(message: Message) = sender.sendMessage(message) @JvmSynthetic - suspend fun reply(message: String) = sender.sendMessage(message) + suspend inline fun reply(message: String) = sender.sendMessage(message) @JvmSynthetic - suspend fun reply(message: List) = sender.sendMessage(message) + suspend inline fun reply(message: List) = sender.sendMessage(message) @JvmSynthetic - suspend fun reply(message: MessageChain) = sender.sendMessage(message) + suspend inline fun reply(message: MessageChain) = sender.sendMessage(message) }