1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

update doc & fix typo.

This commit is contained in:
Mrs4s 2021-08-15 02:51:32 +08:00
parent bf4f7fb41e
commit e13a5bdad0
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7
2 changed files with 15 additions and 2 deletions

View File

@ -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(),

View File

@ -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 | | 新头衔 |
### 接收到离线文件
**上报数据**