zumito-framework 1.1.12 → 1.1.15

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,7 +1,6 @@
1
1
  import { EventParameters } from "../../../types/EventParameters";
2
- declare const FrameworkEvent: any;
2
+ import { FrameworkEvent } from "../../../types/FrameworkEvent";
3
3
  export declare abstract class InteractionCreate extends FrameworkEvent {
4
4
  once: boolean;
5
5
  execute({ interaction, client, framework }: EventParameters): Promise<void>;
6
6
  }
7
- export {};
@@ -2,8 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InteractionCreate = void 0;
4
4
  const CommandType_1 = require("../../../types/CommandType");
5
- const FrameworkEvent = require("../../../types/FrameworkEvent");
6
- class InteractionCreate extends FrameworkEvent {
5
+ const FrameworkEvent_1 = require("../../../types/FrameworkEvent");
6
+ class InteractionCreate extends FrameworkEvent_1.FrameworkEvent {
7
7
  once = false;
8
8
  async execute({ interaction, client, framework }) {
9
9
  if (interaction.isCommand()) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zumito-framework",
3
- "version": "1.1.12",
3
+ "version": "1.1.15",
4
4
  "description": "Discord.js bot framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -32,5 +32,6 @@
32
32
  "devDependencies": {
33
33
  "typedoc": "^0.23.10",
34
34
  "typescript": "^4.7.4"
35
- }
35
+ },
36
+ "type": "commonjs"
36
37
  }