onebots 0.4.3 → 0.4.4
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.
|
@@ -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>;
|
package/lib/service/V12/index.js
CHANGED
|
@@ -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;
|