mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Add notes
This commit is contained in:
parent
4728ae26b7
commit
7e02c48122
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user