NudgeEvent

data class NudgeEvent @MiraiInternalApi constructor(    val from: UserOrBot,     val target: UserOrBot,     val subject: Contact,     val action: String,     val suffix: String) : AbstractEvent, BotEvent, Packet

戳一戳事件

Constructors

Link copied to clipboard
fun NudgeEvent(    from: UserOrBot,     target: UserOrBot,     subject: Contact,     action: String,     suffix: String)

Functions

Link copied to clipboard
fun cancel()
Link copied to clipboard
open override fun intercept()

Properties

Link copied to clipboard
var _intercepted: Boolean = false
Link copied to clipboard
val action: String
Link copied to clipboard
open override val bot: Bot
Link copied to clipboard
val broadCastLock: Mutex

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

Link copied to clipboard
val from: UserOrBot

戳一戳发起人

Link copied to clipboard
val isCancelled: Boolean
Link copied to clipboard
open override val isIntercepted: Boolean
Link copied to clipboard
val subject: Contact

消息语境, 同 MessageEvent.subject. 可能为 Group, Stranger, Friend, Member.

Link copied to clipboard
val suffix: String
Link copied to clipboard
val target: UserOrBot

戳一戳目标, 可能与 from 相同.