From 7e02c48122e8248bcb732da46e359b78d4ccd701 Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 10 Apr 2020 19:33:20 +0800 Subject: [PATCH] Add notes --- .../commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt index d2ad8a298..8c6fd6e0e 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt @@ -155,6 +155,8 @@ val MessageRecallEvent.GroupRecall.author: Member get() = if (authorId == bot.id) group.botAsMember else group[authorId] val MessageRecallEvent.FriendRecall.isByBot: Boolean get() = this.operator == bot.id +// val MessageRecallEvent.GroupRecall.isByBot: Boolean get() = (this as GroupOperableEvent).isByBot +// no need val MessageRecallEvent.isByBot: Boolean get() = when (this) {