Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #225 from MrXiaoM/fix-guild-message
Browse files Browse the repository at this point in the history
修复 频道消息事件不符合 go-cqhttp 规范
  • Loading branch information
whitechi73 authored Feb 8, 2024
2 parents b03e026 + 63b69df commit e727877
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e727877

Please sign in to comment.