mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 06:09:19 +00:00
优化注释
This commit is contained in:
parent
9016ab405a
commit
f5210c2079
@ -43,7 +43,7 @@ class Handler {
|
|||||||
logger.warn(`crystelf WS 错误:${msg.data}`);
|
logger.warn(`crystelf WS 错误:${msg.data}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
获取群聊信息,自动回调
|
获取群聊信息,自动回调
|
||||||
@examples 请求示例
|
@examples 请求示例
|
||||||
```json
|
```json
|
||||||
@ -56,7 +56,7 @@ class Handler {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
*/
|
**/
|
||||||
async handleGetGroupInfo(client, msg) {
|
async handleGetGroupInfo(client, msg) {
|
||||||
const requestId = msg?.requestId;
|
const requestId = msg?.requestId;
|
||||||
const botId = msg.data?.botId;
|
const botId = msg.data?.botId;
|
||||||
@ -71,6 +71,12 @@ class Handler {
|
|||||||
await wsClient.sendMessage(returnData);
|
await wsClient.sendMessage(returnData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 发送信息到群聊
|
||||||
|
* @param client
|
||||||
|
* @param msg
|
||||||
|
* @returns {Promise<void>}
|
||||||
|
*/
|
||||||
async handleSendMessage(client, msg) {
|
async handleSendMessage(client, msg) {
|
||||||
const botId = msg.data?.botId;
|
const botId = msg.data?.botId;
|
||||||
const groupId = msg.data?.groupId;
|
const groupId = msg.data?.groupId;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user