@impulsedev/chameleon 1.2.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 +2 -1
- package/package.json +1 -1
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
|
@@ -1215,7 +1215,7 @@ var ChameleonGateway = class {
|
|
|
1215
1215
|
// package.json
|
|
1216
1216
|
var package_default = {
|
|
1217
1217
|
name: "@impulsedev/chameleon",
|
|
1218
|
-
version: "1.
|
|
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",
|
|
@@ -2808,6 +2808,7 @@ var Client = class {
|
|
|
2808
2808
|
listeners = /* @__PURE__ */ new Map();
|
|
2809
2809
|
middlewares = [];
|
|
2810
2810
|
constructor(options) {
|
|
2811
|
+
if (!options.token) throw new Error("[Chameleon] Token is required");
|
|
2811
2812
|
this.token = options.token;
|
|
2812
2813
|
this.intents = this.resolveIntents(options.intents);
|
|
2813
2814
|
this.debug = options.debug ?? false;
|