MessageRecallEvent

sealed class MessageRecallEvent : AbstractEvent, BotEvent

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

See also

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

Types

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

好友消息撤回事件

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

群消息撤回事件.

Functions

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

拦截这个事件

Properties

author
Link copied to clipboard
abstract val author: UserOrBot

消息原发送人.

authorId
Link copied to clipboard
abstract val authorId: Long

消息原发送人

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

事件是否已被拦截.

messageIds
Link copied to clipboard
abstract val messageIds: IntArray

消息 ids.

messageInternalIds
Link copied to clipboard
abstract val messageInternalIds: IntArray

消息内部 ids.

messageTime
Link copied to clipboard
abstract val messageTime: Int

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

Inheritors

FriendRecall
Link copied to clipboard
GroupRecall
Link copied to clipboard

Extensions

isByBot
Link copied to clipboard
val MessageRecallEvent.isByBot: Boolean