@dressed/react 1.6.0-rc.1 → 1.6.0-rc.1.1

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.
@@ -1,5 +1,5 @@
1
1
  import { type APIInteractionResponseCallbackData, type APIModalInteractionResponseCallbackData, type ApplicationCommandType } from "discord-api-types/v10";
2
- import type { CommandInteraction as DressedCommandInteraction, MessageComponentInteraction as DressedMessageComponentInteraction, ModalSubmitInteraction as DressedModalSubmitInteraction } from "dressed";
2
+ import type { CommandConfig, CommandInteraction as DressedCommandInteraction, MessageComponentInteraction as DressedMessageComponentInteraction, ModalSubmitInteraction as DressedModalSubmitInteraction } from "dressed";
3
3
  import type { createInteraction, RawFile } from "dressed/server";
4
4
  import type { ReactNode } from "react";
5
5
  type ReplyProps = [
@@ -40,8 +40,8 @@ type ReactivatedInteraction<T> = OverrideMethodParams<T, {
40
40
  type OverrideMethodParams<T, Overrides extends Record<string, unknown[]>> = {
41
41
  [K in keyof T]: K extends keyof Overrides ? T[K] extends (...args: any) => any ? (...args: Overrides[K]) => ReturnType<T[K]> : T[K] : T[K];
42
42
  };
43
- export type CommandInteraction<T extends keyof typeof ApplicationCommandType = "ChatInput"> = ReactivatedInteraction<DressedCommandInteraction<T>>;
44
- export type MessageComponentInteraction = ReactivatedInteraction<DressedMessageComponentInteraction>;
43
+ export type CommandInteraction<T extends keyof typeof ApplicationCommandType | CommandConfig = "ChatInput"> = ReactivatedInteraction<DressedCommandInteraction<T>>;
44
+ export type MessageComponentInteraction<T extends "Button" | "StringSelect" | "UserSelect" | "RoleSelect" | "MentionableSelect" | "ChannelSelect" | undefined = undefined> = ReactivatedInteraction<DressedMessageComponentInteraction<T>>;
45
45
  export type ModalSubmitInteraction = ReactivatedInteraction<DressedModalSubmitInteraction>;
46
46
  export declare function patchInteraction<T extends NonNullable<ReturnType<typeof createInteraction>>>(interaction: T): ReactivatedInteraction<T>;
47
47
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../src/rendering/interaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,GACb,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAyDpC,MAAM,UAAU,gBAAgB,CAC9B,WAAc;IAEd,IAAI,CAAC,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpD,yEAAyE;IACzE,MAAM,cAAc,GAAG,WAAkB,CAAC;IAC1C,KAAK,MAAM,MAAM,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,CAAgB,EAAE,CAAC;QAC9F,IAAI,CAAC,CAAC,MAAM,IAAI,WAAW,CAAC;YAAE,SAAS;QACvC,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAA4B,CAAC;QAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,UAAyB,EAAE,OAAsB,EAAE,EAAE,EAAE;;YACrF,MAAM,KAAK,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,CAAC,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC;YAC9D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,CAAC,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,UAAmB,CAAC;YACjE,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC"}
1
+ {"version":3,"file":"interaction.js","sourceRoot":"","sources":["../../src/rendering/interaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,GACb,MAAM,uBAAuB,CAAC;AAS/B,OAAO,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAkEpC,MAAM,UAAU,gBAAgB,CAC9B,WAAc;IAEd,IAAI,CAAC,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;IACpD,yEAAyE;IACzE,MAAM,cAAc,GAAG,WAAkB,CAAC;IAC1C,KAAK,MAAM,MAAM,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,WAAW,CAAgB,EAAE,CAAC;QAC9F,IAAI,CAAC,CAAC,MAAM,IAAI,WAAW,CAAC;YAAE,SAAS;QACvC,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAA4B,CAAC;QAChE,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,UAAyB,EAAE,OAAsB,EAAE,EAAE,EAAE;;YACrF,MAAM,KAAK,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,mCAAI,CAAC,CAAC,GAAG,YAAY,CAAC,cAAc,CAAC;YAC9D,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,CAAC,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,UAAmB,CAAC;YACjE,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC;IACJ,CAAC;IACD,OAAO,cAAc,CAAC;AACxB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dressed/react",
3
- "version": "1.6.0-rc.1",
3
+ "version": "1.6.0-rc.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Inbestigator/dressed.git",