fix missing guild_id and channel_id

This commit is contained in:
MrXiaoM 2024-02-08 14:51:14 +08:00
parent b03e02675b
commit 63b69df3ea
2 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,8 @@ internal object GlobalEventTransmitter: BaseSvc() {
postType = postType,
messageType = MsgType.Guild,
subType = MsgSubType.Channel,
guildId = record.guildId,
channelId = record.channelId,
messageId = msgHash,
targetId = record.peerUin,
peerId = botUin,

View File

@ -53,6 +53,8 @@ internal data class MessageEvent (
@SerialName("sub_type") val subType: MsgSubType,
@SerialName("message_id") val messageId: Int,
@SerialName("group_id") val groupId: Long = 0,
@SerialName("guild_id") val guildId: String? = null,
@SerialName("channel_id") val channelId: String? = null,
@SerialName("target_id") val targetId: Long = 0,
@SerialName("peer_id") val peerId: Long,
@SerialName("user_id") val userId: Long,