@discordjs/core 3.0.0-dev.1748650425-ef2c1bfa7 → 3.0.0-dev.1748909645-d40ceedad
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/http-only.js +1 -1
- package/dist/http-only.js.map +1 -1
- package/dist/http-only.mjs +1 -1
- package/dist/http-only.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -2329,7 +2329,7 @@ declare class Client extends AsyncEventEmitter<MappedEvents> {
|
|
|
2329
2329
|
readonly rest: REST;
|
|
2330
2330
|
readonly gateway: Gateway;
|
|
2331
2331
|
readonly api: API;
|
|
2332
|
-
constructor(
|
|
2332
|
+
constructor(options: ClientOptions);
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Requests guild members from the gateway and returns an async iterator that yields the data from each guild members chunk event.
|
|
2335
2335
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2329,7 +2329,7 @@ declare class Client extends AsyncEventEmitter<MappedEvents> {
|
|
|
2329
2329
|
readonly rest: REST;
|
|
2330
2330
|
readonly gateway: Gateway;
|
|
2331
2331
|
readonly api: API;
|
|
2332
|
-
constructor(
|
|
2332
|
+
constructor(options: ClientOptions);
|
|
2333
2333
|
/**
|
|
2334
2334
|
* Requests guild members from the gateway and returns an async iterator that yields the data from each guild members chunk event.
|
|
2335
2335
|
*
|
package/dist/index.js
CHANGED
|
@@ -3111,11 +3111,11 @@ var Client = class extends import_async_event_emitter.AsyncEventEmitter {
|
|
|
3111
3111
|
rest;
|
|
3112
3112
|
gateway;
|
|
3113
3113
|
api;
|
|
3114
|
-
constructor(
|
|
3114
|
+
constructor(options) {
|
|
3115
3115
|
super();
|
|
3116
|
-
this.rest = rest;
|
|
3117
|
-
this.gateway = gateway;
|
|
3118
|
-
this.api = new API(rest);
|
|
3116
|
+
this.rest = options.rest;
|
|
3117
|
+
this.gateway = options.gateway;
|
|
3118
|
+
this.api = new API(this.rest);
|
|
3119
3119
|
this.gateway.on(import_ws.WebSocketShardEvents.Dispatch, (dispatch, shardId) => {
|
|
3120
3120
|
this.emit(dispatch.t, this.toEventProps(dispatch.d, shardId));
|
|
3121
3121
|
});
|
|
@@ -3336,7 +3336,7 @@ __name(withFiles, "withFiles");
|
|
|
3336
3336
|
|
|
3337
3337
|
// src/index.ts
|
|
3338
3338
|
__reExport(index_exports, require("discord-api-types/v10"), module.exports);
|
|
3339
|
-
var version = "3.0.0-dev.
|
|
3339
|
+
var version = "3.0.0-dev.1748909645-d40ceedad";
|
|
3340
3340
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3341
3341
|
0 && (module.exports = {
|
|
3342
3342
|
API,
|