@impulsedev/chameleon 1.7.0 → 3.0.0
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 +8 -7
- package/dist/builders-WHD6LQWX.js +64 -0
- package/dist/chunk-G4SUOXGV.js +911 -0
- package/dist/index.d.ts +1418 -937
- package/dist/index.js +2439 -1453
- package/media/discordchameleon.png +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
# Chameleon
|
|
1
|
+
# <img src="./media/discordchameleon.png" height="120" valign="middle"/> Chameleon
|
|
2
2
|
|
|
3
|
-
Chameleon is a type-safe Discord API framework
|
|
3
|
+
Chameleon is a type-safe Discord API framework designed around memory efficiency.
|
|
4
4
|
|
|
5
5
|
Designed for development of ...
|
|
6
6
|
|
|
7
7
|
### What we do different?
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
9
|
+
- We store timestamps in milliseconds instead of Discord ISO8601 timestamps
|
|
10
|
+
- We store all structs in POJOs instead of classes
|
|
11
|
+
- All gateway events are strict discriminated unions
|
|
12
|
+
- Where possible, we're attaching X-Audit-Log-Reason header to REST requests
|
|
12
13
|
|
|
13
14
|
### Bugs?
|
|
14
15
|
|
|
15
|
-
-
|
|
16
|
+
- Yes, ton of 'em
|
|
16
17
|
|
|
17
18
|
### Related Structs
|
|
18
19
|
|
|
19
|
-
If possible,
|
|
20
|
+
If possible, Chameleon will attach the struct of related resources
|
|
20
21
|
|
|
21
22
|
### Documentation
|
|
22
23
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ActionRowBuilder,
|
|
3
|
+
ButtonBuilder,
|
|
4
|
+
Colors,
|
|
5
|
+
EmbedBuilder,
|
|
6
|
+
ModalBuilder,
|
|
7
|
+
SelectMenuBuilder,
|
|
8
|
+
TextInputBuilder,
|
|
9
|
+
buildAutoModRule,
|
|
10
|
+
buildChannel,
|
|
11
|
+
buildEmoji,
|
|
12
|
+
buildEntitlement,
|
|
13
|
+
buildGuild,
|
|
14
|
+
buildIntegration,
|
|
15
|
+
buildInteraction,
|
|
16
|
+
buildInvite,
|
|
17
|
+
buildMember,
|
|
18
|
+
buildMessage,
|
|
19
|
+
buildRole,
|
|
20
|
+
buildScheduledEvent,
|
|
21
|
+
buildStageInstance,
|
|
22
|
+
buildSticker,
|
|
23
|
+
buildStickerItem,
|
|
24
|
+
buildUser,
|
|
25
|
+
buildVoiceState,
|
|
26
|
+
buildWebhook,
|
|
27
|
+
resolveChannel,
|
|
28
|
+
resolveGuild,
|
|
29
|
+
resolveRole,
|
|
30
|
+
resolveUser,
|
|
31
|
+
serializeComponent
|
|
32
|
+
} from "./chunk-G4SUOXGV.js";
|
|
33
|
+
export {
|
|
34
|
+
ActionRowBuilder,
|
|
35
|
+
ButtonBuilder,
|
|
36
|
+
Colors,
|
|
37
|
+
EmbedBuilder,
|
|
38
|
+
ModalBuilder,
|
|
39
|
+
SelectMenuBuilder,
|
|
40
|
+
TextInputBuilder,
|
|
41
|
+
buildAutoModRule,
|
|
42
|
+
buildChannel,
|
|
43
|
+
buildEmoji,
|
|
44
|
+
buildEntitlement,
|
|
45
|
+
buildGuild,
|
|
46
|
+
buildIntegration,
|
|
47
|
+
buildInteraction,
|
|
48
|
+
buildInvite,
|
|
49
|
+
buildMember,
|
|
50
|
+
buildMessage,
|
|
51
|
+
buildRole,
|
|
52
|
+
buildScheduledEvent,
|
|
53
|
+
buildStageInstance,
|
|
54
|
+
buildSticker,
|
|
55
|
+
buildStickerItem,
|
|
56
|
+
buildUser,
|
|
57
|
+
buildVoiceState,
|
|
58
|
+
buildWebhook,
|
|
59
|
+
resolveChannel,
|
|
60
|
+
resolveGuild,
|
|
61
|
+
resolveRole,
|
|
62
|
+
resolveUser,
|
|
63
|
+
serializeComponent
|
|
64
|
+
};
|