RawLifecycleEvent

data class RawLifecycleEvent(val time: Long, val selfId: LongID, val postType: String, val metaEventType: String, val subType: String) : RawMetaEvent(source)

生命周期

Constructors

Link copied to clipboard
constructor(time: Long, selfId: LongID, postType: String, metaEventType: String, subType: String)

Properties

Link copied to clipboard
@SerialName(value = "meta_event_type")
open override val metaEventType: String

元事件类型

Link copied to clipboard
@SerialName(value = "post_type")
open override val postType: String

事件类型

Link copied to clipboard
@SerialName(value = "self_id")
open override val selfId: LongID

收到事件的机器人 QQ 号

Link copied to clipboard
@SerialName(value = "sub_type")
val subType: String

事件子类型,分别表示 OneBot 启用、停用、WebSocket 连接成功. 可能的值: enabledisableconnect. 注意,目前生命周期元事件中,只有 HTTP POST 的情况下可以收到 enabledisable, 只有正向 WebSocket 和反向 WebSocket 可以收到 connect

Link copied to clipboard
open override val time: Long

事件发生的时间戳