RawGroupRequestEvent

data class RawGroupRequestEvent(val time: Long, val requestType: String, val selfId: LongID, val postType: String, val subType: String, val groupId: LongID, val userId: LongID, val comment: String = "", val flag: String) : RawRequestEvent(source)

加群请求/邀请

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(time: Long, requestType: String, selfId: LongID, postType: String, subType: String, groupId: LongID, userId: LongID, comment: String = "", flag: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

验证信息

Link copied to clipboard

请求 flag,在调用处理请求的 API 时需要传入

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

群号

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

事件类型

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

请求子类型,分别表示加群请求、邀请登录号入群。 可能:addinvite

Link copied to clipboard
open override val time: Long

事件发生的时间戳

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

发送请求的 QQ 号