momocow / node-cq-websocket

A Node SDK for developing QQ chatbots based on WebSocket, which is depending on CoolQ and CQHTTP API plugin.

Home Page:https://cq-websocket.js.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

request.group.invite 事件监听工作不正常

Tsuk1ko opened this issue · comments

监听request.group.invite时,我试着邀请机器人入群,而得到的监听器参数contextundefined

@YKilin 這或許是文檔部分的失誤, 我 ctrl + c 太順手沒有修改好。

移除第一個參數 CQEvent 試試
實際上只有 message 系列的事件監聽器第一個參數是個 CQEvent。

文檔我會修正為以下型式:

request 子事件

事件類型 監聽器參數 說明
request.friend context object 私聊消息。
request.group.add context object 加群請求。
request.group.invite context object 邀請入群。

感謝回報 _(:з」∠)_

测试OK了2333 _(:3」∠)_