FriendRecall

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

好友消息撤回事件

Constructors

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

Functions

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

拦截这个事件

Properties

author
Link copied to clipboard
open override val author: Friend

消息原发送人, 等于 operator

authorId
Link copied to clipboard
open override val authorId: Long

消息原发送人

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

消息 ids.

messageInternalIds
Link copied to clipboard
open override val messageInternalIds: IntArray

消息内部 ids.

messageTime
Link copied to clipboard
open override val messageTime: Int

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

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

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

Extensions

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