onebots 0.4.65 → 0.4.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,11 +6,11 @@ export declare class CommonAction {
6
6
  * 撤回消息
7
7
  * @param message_id {string} 消息id
8
8
  */
9
- deleteMsg(this: V12, message_id: string): Promise<any>;
9
+ deleteMessage(this: V12, message_id: string): Promise<any>;
10
10
  /**
11
11
  * 获取消息详情
12
12
  */
13
- getMsg(this: V12, message_id: string): Promise<any>;
13
+ getMessage(this: V12, message_id: string): Promise<any>;
14
14
  getSelfInfo(this: V12): {
15
15
  user_id: string;
16
16
  platform: string;
@@ -12,13 +12,13 @@ class CommonAction {
12
12
  * 撤回消息
13
13
  * @param message_id {string} 消息id
14
14
  */
15
- deleteMsg(message_id) {
15
+ deleteMessage(message_id) {
16
16
  return this.adapter.call(this.oneBot.uin, "V12", "deleteMsg", [message_id]);
17
17
  }
18
18
  /**
19
19
  * 获取消息详情
20
20
  */
21
- async getMsg(message_id) {
21
+ async getMessage(message_id) {
22
22
  const message = await this.adapter.call(this.oneBot.uin, "V12", "getMessage", [message_id]);
23
23
  if (!message)
24
24
  throw new Error("消息不存在");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onebots",
3
- "version": "0.4.65",
3
+ "version": "0.4.66",
4
4
  "description": "基于icqq的多例oneBot实现",
5
5
  "main": "lib/index.js",
6
6
  "bin": {