StrangerRelationChangeEvent

sealed class StrangerRelationChangeEvent : AbstractEvent, StrangerEvent, Packet

陌生人关系改变事件

Types

Link copied to clipboard
class Deleted(val stranger: Stranger) : StrangerRelationChangeEvent

主动删除陌生人或陌生人被删除的事件, 不一定能接收到被动删除的事件

Link copied to clipboard
class Friended(val stranger: Stranger, val friend: Friend) : StrangerRelationChangeEvent

与陌生人成为好友

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
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 stranger: Stranger
Link copied to clipboard
open override val user: Stranger

Inheritors

Link copied to clipboard
Link copied to clipboard