@alemonjs/qq-bot 2.1.36 → 2.1.38
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.
- package/README.md +68 -1979
- package/lib/config.d.ts +5 -0
- package/lib/framework-actions.d.ts +75 -0
- package/lib/framework-actions.js +620 -0
- package/lib/framework-events.d.ts +10 -0
- package/lib/framework-events.js +182 -0
- package/lib/hook.d.ts +16 -12
- package/lib/hook.js +5 -9
- package/lib/index.d.ts +6 -1
- package/lib/index.js +2 -1
- package/lib/index.websoket.js +6 -2
- package/lib/message/AUDIO_EVENT.d.ts +20 -0
- package/lib/message/AUDIO_EVENT.js +1 -0
- package/lib/message/FORUM_EVENT.d.ts +33 -0
- package/lib/message/FORUM_EVENT.js +1 -0
- package/lib/message/GUILD_AUDIT.d.ts +14 -0
- package/lib/message/GUILD_AUDIT.js +1 -0
- package/lib/message/INTERACTION_CREATE.d.ts +13 -20
- package/lib/message/MESSAGE_CREATE.d.ts +3 -9
- package/lib/message/MESSAGE_DELETE.d.ts +15 -1
- package/lib/message/group/C2C_MESSAGE_CREATE.d.ts +3 -13
- package/lib/message/group/C2C_MSG_RECEIVE.d.ts +1 -1
- package/lib/message/group/C2C_MSG_REJECT.d.ts +1 -1
- package/lib/message/group/FRIEND_ADD.d.ts +7 -1
- package/lib/message/group/FRIEND_DEL.d.ts +4 -1
- package/lib/message/group/GROUP_AT_MESSAGE_CREATE.d.ts +6 -27
- package/lib/message/group/GROUP_MEMBER_ADD.d.ts +4 -2
- package/lib/message/group/GROUP_MEMBER_REMOVE.d.ts +4 -2
- package/lib/message/group/GROUP_MESSAGE_CREATE.d.ts +6 -27
- package/lib/message/group/GROUP_MSG_RECEIVE.d.ts +1 -1
- package/lib/message/group/GROUP_MSG_REJECT.d.ts +1 -1
- package/lib/message/group/MESSAGE_AUDIT_PASS.d.ts +2 -0
- package/lib/message/group/MESSAGE_AUDIT_REJECT.d.ts +2 -0
- package/lib/message/group/SUBSCRIBE_MESSAGE_STATUS.d.ts +17 -0
- package/lib/message/group/SUBSCRIBE_MESSAGE_STATUS.js +1 -0
- package/lib/register.d.ts +1 -0
- package/lib/register.js +287 -115
- package/lib/sdk/api.d.ts +93 -14
- package/lib/sdk/api.js +241 -45
- package/lib/sdk/client.webhook.js +39 -19
- package/lib/sdk/client.websoket.js +2 -1
- package/lib/sdk/instance.d.ts +1 -6
- package/lib/sdk/instance.js +20 -66
- package/lib/sdk/intents.d.ts +1 -0
- package/lib/sdk/intents.js +1 -0
- package/lib/sdk/message.d.ts +1 -1
- package/lib/sdk/message.group.d.ts +4 -2
- package/lib/sdk/message.guild.d.ts +19 -0
- package/lib/sdk/non-channel-types.d.ts +138 -0
- package/lib/sdk/non-channel-types.js +1 -0
- package/lib/sdk/registry.js +2 -2
- package/lib/sdk/typing.d.ts +13 -1
- package/lib/sdk/webhook.secret.d.ts +1 -1
- package/lib/sdk/webhook.secret.js +10 -5
- package/lib/sends.d.ts +3 -3
- package/lib/sends.js +46 -10
- package/lib/text-sanitizer.d.ts +13 -0
- package/lib/text-sanitizer.js +26 -0
- package/lib/upload.js +13 -37
- package/package.json +8 -6
|
@@ -1,40 +1,19 @@
|
|
|
1
|
+
import { QQBotMessageContent, QQBotMessageUser } from "../../sdk/non-channel-types.js";
|
|
1
2
|
//#region src/message/group/GROUP_MESSAGE_CREATE.d.ts
|
|
2
3
|
/**
|
|
3
4
|
* 群消息事件
|
|
4
5
|
*/
|
|
5
|
-
interface GROUP_MESSAGE_CREATE_TYPE {
|
|
6
|
-
|
|
7
|
-
id?: string;
|
|
8
|
-
url?: string;
|
|
9
|
-
content_type?: string;
|
|
10
|
-
filename?: string;
|
|
11
|
-
size?: number;
|
|
12
|
-
}[];
|
|
13
|
-
author: {
|
|
14
|
-
bot?: boolean;
|
|
15
|
-
id: string;
|
|
16
|
-
member_openid: string;
|
|
17
|
-
union_openid: string;
|
|
18
|
-
username: string;
|
|
19
|
-
};
|
|
6
|
+
interface GROUP_MESSAGE_CREATE_TYPE extends QQBotMessageContent {
|
|
7
|
+
author: QQBotMessageUser;
|
|
20
8
|
content: string;
|
|
21
9
|
group_openid: string;
|
|
22
|
-
group_id
|
|
10
|
+
group_id?: string;
|
|
23
11
|
id: string;
|
|
24
|
-
mentions?: {
|
|
25
|
-
bot?: boolean;
|
|
26
|
-
id: string;
|
|
12
|
+
mentions?: (QQBotMessageUser & {
|
|
27
13
|
is_you?: boolean;
|
|
28
|
-
member_openid?: string;
|
|
29
14
|
scope?: string;
|
|
30
|
-
|
|
31
|
-
}[];
|
|
15
|
+
})[];
|
|
32
16
|
timestamp: string;
|
|
33
|
-
message_scene: {
|
|
34
|
-
ext: string[];
|
|
35
|
-
source: string;
|
|
36
|
-
};
|
|
37
|
-
message_type: number;
|
|
38
17
|
}
|
|
39
18
|
//#endregion
|
|
40
19
|
export { GROUP_MESSAGE_CREATE_TYPE };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/message/group/SUBSCRIBE_MESSAGE_STATUS.d.ts
|
|
2
|
+
/** 订阅消息模板授权变更,GROUP_AND_C2C_EVENT (1 << 25)。 */
|
|
3
|
+
type SUBSCRIBE_MESSAGE_STATUS_TYPE = {
|
|
4
|
+
id?: string;
|
|
5
|
+
group_openid?: string;
|
|
6
|
+
openid?: string;
|
|
7
|
+
result: {
|
|
8
|
+
template_id: number;
|
|
9
|
+
custom_template_id: string;
|
|
10
|
+
op: 1 | 2;
|
|
11
|
+
subscribe_id: string;
|
|
12
|
+
subscribe_ts: number;
|
|
13
|
+
update_ts: number;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { SUBSCRIBE_MESSAGE_STATUS_TYPE };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/lib/register.d.ts
CHANGED