# 频道成员事件
# 内容
在 MemberWithGuildID 基础上,增加 op_user_id
代表操作人。
注:此事件由于开发较早,尚有一些字段未标准化处理,如 joined_at
, roles
请开发者适配的时候注意。晚些时候我们也会将这些字段标准化处理。
# GUILD_MEMBER_ADD
# 发送时机
- 新用户加入频道
# 示例
{
"guild_id": "200000000",
"joined_at": "2021-10-21T11:20:18+08:00",
"nick": "",
"op_user_id": "100000000",
"roles": [
"1"
],
"user": {
"avatar": "http://thirdqq.qlogo.cn/g?b=oidb&k=IU4JJatZtNXCVrf44eshNg&s=0&t=1638261405",
"bot": true,
"id": "8834102668809967837",
"username": "b站机器人"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# GUILD_MEMBER_UPDATE
# 发送时机
- 用户的频道属性发生变化,如频道昵称,或者身份组
# 示例
{
"guild_id": "200000000",
"joined_at": "2021-10-21T11:20:18+08:00",
"nick": "",
"op_user_id": "8834102668809967837",
"roles": ["2"],
"user": {
"avatar": "http://thirdqq.qlogo.cn/g?b=oidb&k=IU4JJatZtNXCVrf44eshNg&s=0&t=1638261405",
"bot": true,
"id": "8834102668809967837",
"username": "b站机器人"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
# GUILD_MEMBER_REMOVE
# 发送时机
- 用户离开频道
# 示例
{
"guild_id": "200000000",
"joined_at": "2021-10-21T11:20:18+08:00",
"nick": "",
"op_user_id": "100000000",
"roles": [
"1"
],
"user": {
"avatar": "http://thirdqq.qlogo.cn/g?b=oidb&k=IU4JJatZtNXCVrf44eshNg&s=0&t=1638261405",
"bot": true,
"id": "8834102668809967837",
"username": "b站机器人"
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15