FriendRecall

data class FriendRecall @MiraiInternalApi constructor(    val bot: Bot,     val messageIds: IntArray,     val messageInternalIds: IntArray,     val messageTime: Int,     val operatorId: Long,     val operator: Friend) : MessageRecallEvent, Packet

好友消息撤回事件

Constructors

Link copied to clipboard
fun FriendRecall(    bot: Bot,     messageIds: IntArray,     messageInternalIds: IntArray,     messageTime: Int,     operatorId: Long,     operator: Friend)

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
abstract fun intercept()

拦截这个事件

Properties

Link copied to clipboard
var _intercepted: Boolean = false
Link copied to clipboard
open override val author: Friend

消息原发送人, 等于 operator

Link copied to clipboard
open override val authorId: Long

消息原发送人

Link copied to clipboard
open override val bot: Bot
Link copied to clipboard
val broadCastLock: Mutex

限制一个事件实例不能并行广播. (适用于 object 广播的情况)

Link copied to clipboard
val isCancelled: Boolean
Link copied to clipboard
abstract val isIntercepted: Boolean

事件是否已被拦截.

Link copied to clipboard
open override val messageIds: IntArray

消息 ids.

Link copied to clipboard
open override val messageInternalIds: IntArray

消息内部 ids.

Link copied to clipboard
open override val messageTime: Int

原发送时间戳, 单位为秒.

Link copied to clipboard
val operator: Friend
Link copied to clipboard
val operatorId: Long

撤回操作人, 好友的 User.id

Extensions

Link copied to clipboard
val MessageRecallEvent.FriendRecall.isByBot: Boolean