语音频道Event

成员加入语音频道事件

ChannelVoiceMemberJoinEvent

触发时机

用户加入语音频道时

事件类型

5001

事件内容

EventBodyChannelVoiceMemberJoin

字段类型说明
islandIdstring来源群号
channelIdstring来源语音频道ID
dodoIdstring来源DoDo号
personalobject个人信息
memberobject成员信息

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "islandId": "44659",
            "channelId": "123456",
            "dodoId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "member": {
                "nickName": "测试群昵称",
                "joinTime": "2022-07-20 10:27:24"
            }
        },
        "eventId": "3dcf80c0a3244661a6c65dd9ba37898e",
        "eventType": "5001",
        "timestamp": 1661153329922
    }
}

成员退出语音频道事件

ChannelVoiceMemberLeaveEvent

触发时机

用户退出语音频道时

事件类型

5002

事件内容

EventBodyChannelVoiceMemberLeave

字段类型说明
islandIdstring来源群号
channelIdstring来源语音频道ID
dodoIdstring来源DoDo号
personalobject个人信息
memberobject成员信息

事件示例

{
    "type": 0,
    "data": {
        "eventBody": {
            "islandId": "44659",
            "channelId": "123456",
            "dodoId": "681856",
            "personal": {
                "nickName": "测试DoDo昵称",
                "avatarUrl": "https://static.imdodo.com/DoDoRes/Avatar/6.png",
                "sex": 1
            },
            "member": {
                "nickName": "测试群昵称",
                "joinTime": "2022-07-20 10:27:24"
            }
        },
        "eventId": "3dcf80c0a3244661a6c65dd9ba37898e",
        "eventType": "5002",
        "timestamp": 1661153329922
    }
}