onebots 0.4.3 → 0.4.5

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.
@@ -43,6 +43,7 @@ export declare class CommonAction {
43
43
  pktnum: number;
44
44
  index: number;
45
45
  div: number;
46
+ cqCode: string;
46
47
  } | {
47
48
  message: V12.SegmentElem<keyof V12.SegmentMap>[];
48
49
  message_type: "private";
@@ -68,6 +69,7 @@ export declare class CommonAction {
68
69
  pktnum: number;
69
70
  index: number;
70
71
  div: number;
72
+ cqCode: string;
71
73
  }>;
72
74
  getSelfInfo(this: V12): {
73
75
  user_id: string;
@@ -42,7 +42,11 @@ export declare class V12 extends EventEmitter implements OneBot.Base {
42
42
  detail_type: E;
43
43
  type: string;
44
44
  sub_type: string;
45
- } & Omit<V12.BotEventMap[E], E>;
45
+ } & Omit<V12.BotEventMap[E], E> & {
46
+ group: any;
47
+ frind: any;
48
+ member: any;
49
+ };
46
50
  dispatch(data: Record<string, any>): void;
47
51
  apply(req: V12.RequestAction): Promise<string>;
48
52
  private _httpRequestHandler;
@@ -221,7 +225,11 @@ export declare namespace V12 {
221
225
  detail_type: K;
222
226
  type: string;
223
227
  sub_type: string;
224
- } & Omit<BotEventMap[K], K>;
228
+ } & Omit<BotEventMap[K], K> & {
229
+ group: any;
230
+ frind: any;
231
+ member: any;
232
+ };
225
233
  type RequestAction = {
226
234
  action: string;
227
235
  params: Record<string, any>;
@@ -689,7 +689,10 @@ exports.V12 = V12;
689
689
  detail_type: type,
690
690
  type: 'meta',
691
691
  sub_type: '',
692
- ...data
692
+ ...data,
693
+ group: data['group']?.info,
694
+ frind: data['friend']?.info,
695
+ member: data['member']?.info,
693
696
  };
694
697
  }
695
698
  V12.formatPayload = formatPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "onebots",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "基于icqq的多例oneBot实现",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -56,7 +56,7 @@
56
56
  "@koa/router": "^10.1.1",
57
57
  "@zhinjs/shared": "^0.0.9",
58
58
  "icqq": "^0.3.15",
59
- "icqq-cq-enable": "^1.0.0",
59
+ "icqq-cq-enable": "^1.0.1",
60
60
  "js-yaml": "^4.1.0",
61
61
  "koa": "^2.13.4",
62
62
  "koa-bodyparser": "^4.3.0",