@impulsedev/chameleon 1.1.0 → 1.3.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/dist/index.d.ts +1 -1
- package/dist/index.js +11 -2
- package/package.json +10 -2
package/dist/index.d.ts
CHANGED
|
@@ -2683,7 +2683,7 @@ type EventMap = {
|
|
|
2683
2683
|
};
|
|
2684
2684
|
type MiddlewareFn = (event: ChameleonEvent, next: () => void) => void | Promise<void>;
|
|
2685
2685
|
declare class Client<TIntents extends readonly IntentResolvable[] = readonly IntentResolvable[]> {
|
|
2686
|
-
token: string;
|
|
2686
|
+
token: string | undefined;
|
|
2687
2687
|
intents: number;
|
|
2688
2688
|
cache: TongueStore;
|
|
2689
2689
|
rest: ChameleonREST;
|
package/dist/index.js
CHANGED
|
@@ -1214,8 +1214,8 @@ var ChameleonGateway = class {
|
|
|
1214
1214
|
|
|
1215
1215
|
// package.json
|
|
1216
1216
|
var package_default = {
|
|
1217
|
-
name: "chameleon",
|
|
1218
|
-
version: "1.
|
|
1217
|
+
name: "@impulsedev/chameleon",
|
|
1218
|
+
version: "1.3.0",
|
|
1219
1219
|
description: "highly optimized, memory-efficient, and fully type-safe Discord API library",
|
|
1220
1220
|
main: "dist/index.js",
|
|
1221
1221
|
types: "dist/index.d.ts",
|
|
@@ -1241,7 +1241,15 @@ var package_default = {
|
|
|
1241
1241
|
"library",
|
|
1242
1242
|
"typescript"
|
|
1243
1243
|
],
|
|
1244
|
+
repository: {
|
|
1245
|
+
type: "git",
|
|
1246
|
+
url: "https://github.com/ImpulseDoes/chameleon"
|
|
1247
|
+
},
|
|
1244
1248
|
author: "impulsedoes",
|
|
1249
|
+
bugs: {
|
|
1250
|
+
url: "https://github.com/ImpulseDoes/chameleon/issues"
|
|
1251
|
+
},
|
|
1252
|
+
homepage: "todo",
|
|
1245
1253
|
license: "MIT",
|
|
1246
1254
|
type: "module",
|
|
1247
1255
|
devDependencies: {
|
|
@@ -2800,6 +2808,7 @@ var Client = class {
|
|
|
2800
2808
|
listeners = /* @__PURE__ */ new Map();
|
|
2801
2809
|
middlewares = [];
|
|
2802
2810
|
constructor(options) {
|
|
2811
|
+
if (!options.token) throw new Error("[Chameleon] Token is required");
|
|
2803
2812
|
this.token = options.token;
|
|
2804
2813
|
this.intents = this.resolveIntents(options.intents);
|
|
2805
2814
|
this.debug = options.debug ?? false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@impulsedev/chameleon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "highly optimized, memory-efficient, and fully type-safe Discord API library",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,7 +26,15 @@
|
|
|
26
26
|
"library",
|
|
27
27
|
"typescript"
|
|
28
28
|
],
|
|
29
|
+
"repository": {
|
|
30
|
+
"type": "git",
|
|
31
|
+
"url": "https://github.com/ImpulseDoes/chameleon"
|
|
32
|
+
},
|
|
29
33
|
"author": "impulsedoes",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/ImpulseDoes/chameleon/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "todo",
|
|
30
38
|
"license": "MIT",
|
|
31
39
|
"type": "module",
|
|
32
40
|
"devDependencies": {
|
|
@@ -46,4 +54,4 @@
|
|
|
46
54
|
"lint-staged": {
|
|
47
55
|
"*.ts": "eslint --fix"
|
|
48
56
|
}
|
|
49
|
-
}
|
|
57
|
+
}
|