alemonjs 2.1.43 → 2.1.45
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/LICENSE +21 -0
- package/bin/updateConfig.js +3 -1
- package/lib/app/hook-use-api.d.ts +226 -4
- package/lib/app/hook-use-api.js +912 -11
- package/lib/app/index.js +1 -1
- package/lib/core/index.js +1 -1
- package/lib/core/utils.d.ts +5 -0
- package/lib/core/utils.js +19 -2
- package/lib/index.js +2 -2
- package/lib/types/actions.d.ts +398 -1
- package/lib/types/client/index.d.ts +73 -0
- package/lib/types/event/map.d.ts +5 -1
- package/lib/types/event/member/index.d.ts +3 -0
- package/lib/types/event/notice/index.d.ts +11 -0
- package/lib/types/event/notice/index.js +1 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/standard.d.ts +51 -0
- package/lib/types/standard.js +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { User } from './event/base/user';
|
|
2
|
+
export type GuildInfo = {
|
|
3
|
+
GuildId: string;
|
|
4
|
+
GuildName?: string;
|
|
5
|
+
GuildIcon?: string;
|
|
6
|
+
GuildOwnerId?: string;
|
|
7
|
+
MemberCount?: number;
|
|
8
|
+
Description?: string;
|
|
9
|
+
};
|
|
10
|
+
export type ChannelType = 'text' | 'voice' | 'category' | 'announcement' | 'stage' | 'forum' | 'thread' | 'unknown';
|
|
11
|
+
export type ChannelInfo = {
|
|
12
|
+
ChannelId: string;
|
|
13
|
+
ChannelName?: string;
|
|
14
|
+
ChannelType?: ChannelType;
|
|
15
|
+
GuildId?: string;
|
|
16
|
+
Topic?: string;
|
|
17
|
+
Position?: number;
|
|
18
|
+
ParentId?: string;
|
|
19
|
+
};
|
|
20
|
+
export type MemberInfo = User & {
|
|
21
|
+
Nickname?: string;
|
|
22
|
+
GuildId?: string;
|
|
23
|
+
Roles?: string[];
|
|
24
|
+
JoinedAt?: number;
|
|
25
|
+
};
|
|
26
|
+
export type RoleInfo = {
|
|
27
|
+
RoleId: string;
|
|
28
|
+
RoleName?: string;
|
|
29
|
+
Color?: number;
|
|
30
|
+
Position?: number;
|
|
31
|
+
Permissions?: string;
|
|
32
|
+
Mentionable?: boolean;
|
|
33
|
+
Managed?: boolean;
|
|
34
|
+
};
|
|
35
|
+
export type ReactionInfo = {
|
|
36
|
+
EmojiId: string;
|
|
37
|
+
EmojiName?: string;
|
|
38
|
+
Count?: number;
|
|
39
|
+
IsMe?: boolean;
|
|
40
|
+
};
|
|
41
|
+
export type PaginationParams = {
|
|
42
|
+
Limit?: number;
|
|
43
|
+
After?: string;
|
|
44
|
+
Before?: string;
|
|
45
|
+
};
|
|
46
|
+
export type PaginatedResult<T> = {
|
|
47
|
+
Items: T[];
|
|
48
|
+
Total?: number;
|
|
49
|
+
HasMore?: boolean;
|
|
50
|
+
NextCursor?: string;
|
|
51
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alemonjs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.45",
|
|
4
4
|
"description": "bot script",
|
|
5
5
|
"author": "lemonade",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,5 +68,6 @@
|
|
|
68
68
|
"repository": {
|
|
69
69
|
"type": "git",
|
|
70
70
|
"url": "https://github.com/lemonade-lab/alemonjs.git"
|
|
71
|
-
}
|
|
72
|
-
|
|
71
|
+
},
|
|
72
|
+
"gitHead": "743b70375f728a1584ae149bbadcd04378540ade"
|
|
73
|
+
}
|