@discordjs/core 1.1.2-dev.1702253374-651ffc2ca → 1.1.2-dev.1702598985-18c2dccd0

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.mjs CHANGED
@@ -2547,7 +2547,12 @@ var Client = class extends AsyncEventEmitter {
2547
2547
  this.gateway = gateway;
2548
2548
  this.api = new API(rest);
2549
2549
  this.gateway.on(WebSocketShardEvents.Dispatch, ({ data: dispatch, shardId }) => {
2550
- this.emit(dispatch.t, this.wrapIntrinsicProps(dispatch.d, shardId));
2550
+ this.emit(
2551
+ // TODO: move this expect-error down to the next line once entitlements get merged, so missing dispatch types result in errors
2552
+ // @ts-expect-error event props can't be resolved properly, but they are correct
2553
+ dispatch.t,
2554
+ this.wrapIntrinsicProps(dispatch.d, shardId)
2555
+ );
2551
2556
  });
2552
2557
  }
2553
2558
  /**
@@ -2693,7 +2698,7 @@ __name(withFiles, "withFiles");
2693
2698
 
2694
2699
  // src/index.ts
2695
2700
  export * from "discord-api-types/v10";
2696
- var version = "1.1.2-dev.1702253374-651ffc2ca";
2701
+ var version = "1.1.2-dev.1702598985-18c2dccd0";
2697
2702
  export {
2698
2703
  API,
2699
2704
  ApplicationCommandsAPI,