@discordjs/core 1.3.0-dev.1721607094-b2970bb2d → 2.0.0-dev.1721866231-bf6761a44
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 +69 -73
- package/dist/index.d.ts +69 -73
- package/dist/index.js +4 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2704,12 +2704,8 @@ var Client = class extends AsyncEventEmitter {
|
|
|
2704
2704
|
this.rest = rest;
|
|
2705
2705
|
this.gateway = gateway;
|
|
2706
2706
|
this.api = new API(rest);
|
|
2707
|
-
this.gateway.on(WebSocketShardEvents.Dispatch, (
|
|
2708
|
-
this.emit(
|
|
2709
|
-
dispatch.t,
|
|
2710
|
-
// @ts-expect-error event props can't be resolved properly, but they are correct
|
|
2711
|
-
this.wrapIntrinsicProps(dispatch.d, shardId)
|
|
2712
|
-
);
|
|
2707
|
+
this.gateway.on(WebSocketShardEvents.Dispatch, (dispatch, shardId) => {
|
|
2708
|
+
this.emit(dispatch.t, this.toEventProps(dispatch.d, shardId));
|
|
2713
2709
|
});
|
|
2714
2710
|
}
|
|
2715
2711
|
/**
|
|
@@ -2824,7 +2820,7 @@ var Client = class extends AsyncEventEmitter {
|
|
|
2824
2820
|
d: options
|
|
2825
2821
|
});
|
|
2826
2822
|
}
|
|
2827
|
-
|
|
2823
|
+
toEventProps(obj, shardId) {
|
|
2828
2824
|
return {
|
|
2829
2825
|
api: this.api,
|
|
2830
2826
|
shardId,
|
|
@@ -2852,7 +2848,7 @@ __name(withFiles, "withFiles");
|
|
|
2852
2848
|
|
|
2853
2849
|
// src/index.ts
|
|
2854
2850
|
export * from "discord-api-types/v10";
|
|
2855
|
-
var version = "
|
|
2851
|
+
var version = "2.0.0-dev.1721866231-bf6761a44";
|
|
2856
2852
|
export {
|
|
2857
2853
|
API,
|
|
2858
2854
|
ApplicationCommandsAPI,
|