RawNotifyEvent

data class RawNotifyEvent(val time: Long, val selfId: LongID, val postType: String, val noticeType: String, val subType: String, val groupId: LongID? = null, val honorType: String? = null, val userId: LongID, val targetId: LongID? = null) : RawNoticeEvent(source)

群成员荣誉变更群红包运气王群内戳一戳

其中,红包和戳一戳的 subType 分别为 lucky_kingpoke

Constructors

Link copied to clipboard
constructor(time: Long, selfId: LongID, postType: String, noticeType: String, subType: String, groupId: LongID? = null, honorType: String? = null, userId: LongID, targetId: LongID? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "group_id")
val groupId: LongID? = null

群号。如果是代表私聊相关的事件(例如私聊戳一戳)则为 null

Link copied to clipboard
@SerialName(value = "honor_type")
val honorType: String? = null

荣誉类型,分别表示龙王、群聊之火、快乐源泉。 可能的值: talkativeperformeremotion。 当 subTypehonor 时有值。

Link copied to clipboard
@SerialName(value = "notice_type")
open override val noticeType: 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

提示类型。 可能的值: honor, lucky_king, poke

Link copied to clipboard
@SerialName(value = "target_id")
val targetId: LongID? = null

subTypelucky_king 时代表人气王用户ID, 为 poke 时代表被戳的人的ID,否则为 null

Link copied to clipboard
open override val time: Long

事件发生的时间戳

Link copied to clipboard
@SerialName(value = "user_id")
val userId: LongID

成员 QQ 号。