From e13a5bdad0929e039c9a3dfea79ae2bb6958b5ff Mon Sep 17 00:00:00 2001 From: Mrs4s Date: Sun, 15 Aug 2021 02:51:32 +0800 Subject: [PATCH] update doc & fix typo. --- coolq/event.go | 1 + docs/cqhttp.md | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/coolq/event.go b/coolq/event.go index db0f6eb..8b88c10 100644 --- a/coolq/event.go +++ b/coolq/event.go @@ -288,6 +288,7 @@ func (bot *CQBot) memberTitleUpdatedEvent(c *client.QQClient, e *client.MemberSp "post_type": "notice", "notice_type": "notify", "sub_type": "title", + "group_id": group.Code, "self_id": c.Uin, "user_id": e.Uin, "time": time.Now().Unix(), diff --git a/docs/cqhttp.md b/docs/cqhttp.md index f08bd44..a70b08a 100644 --- a/docs/cqhttp.md +++ b/docs/cqhttp.md @@ -1226,11 +1226,23 @@ JSON数组: | `notice_type` | string | `group_card` | 消息类型 | | `group_id` | int64 | | 群号 | | `user_id` | int64 | | 成员id | -| `card_new` | int64 | | 新名片 | -| `card_old` | int64 | | 旧名片 | +| `card_new` | string | | 新名片 | +| `card_old` | string | | 旧名片 | > PS: 当名片为空时 `card_xx` 字段为空字符串, 并不是昵称 +### 群成员头衔更新事件 + +**上报数据** + +| 字段 | 类型 | 可能的值 | 说明 | +| ------------- | ------ | ------------ | -------- | +| `post_type` | string | `notice` | 上报类型 | +| `notice_type` | string | `notify` | 消息类型 | +| `group_id` | int64 | | 群号 | +| `user_id` | int64 | | 成员id | +| `title` | string | | 新头衔 | + ### 接收到离线文件 **上报数据**