MessageRecallEvent

sealed class MessageRecallEvent : AbstractEvent, BotEvent

消息撤回事件. 可是任意消息被任意人撤回.

See also

撤回消息. 为广播这个事件的唯一途径

Types

Link copied to clipboard
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

好友消息撤回事件

Link copied to clipboard
data class GroupRecall @MiraiInternalApi constructor(    val bot: Bot,     val authorId: Long,     val messageIds: IntArray,     val messageInternalIds: IntArray,     val messageTime: Int,     val operator: Member?,     val group: Group,     val author: NormalMember) : MessageRecallEvent, GroupOperableEvent, Packet

群消息撤回事件.

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
abstract fun intercept()

拦截这个事件

Properties

Link copied to clipboard
var _intercepted: Boolean = false
Link copied to clipboard
abstract val author: UserOrBot

消息原发送人.

Link copied to clipboard
abstract val authorId: Long

消息原发送人

Link copied to clipboard
abstract 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
abstract val messageIds: IntArray

消息 ids.

Link copied to clipboard
abstract val messageInternalIds: IntArray

消息内部 ids.

Link copied to clipboard
abstract val messageTime: Int

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

Inheritors

Link copied to clipboard
Link copied to clipboard

Extensions

Link copied to clipboard
val MessageRecallEvent.isByBot: Boolean