@sapphire/plugin-editable-commands 3.1.1-next.eccc557.0 → 4.0.0-pr-512.86f3d06.0

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.
Files changed (40) hide show
  1. package/dist/cjs/index.cjs +16 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.ts +12 -0
  4. package/dist/cjs/listeners/PluginMessageUpdate.cjs +28 -0
  5. package/dist/cjs/listeners/PluginMessageUpdate.cjs.map +1 -0
  6. package/dist/cjs/listeners/_load.cjs +16 -0
  7. package/dist/cjs/listeners/_load.cjs.map +1 -0
  8. package/dist/cjs/register.cjs +22 -0
  9. package/dist/cjs/register.cjs.map +1 -0
  10. package/dist/{register.d.ts → cjs/register.d.ts} +4 -2
  11. package/dist/esm/chunk-G5GHKT7C.mjs +6 -0
  12. package/dist/esm/chunk-G5GHKT7C.mjs.map +1 -0
  13. package/dist/esm/index.d.mts +12 -0
  14. package/dist/esm/index.mjs +8 -0
  15. package/dist/esm/index.mjs.map +1 -0
  16. package/dist/esm/listeners/PluginMessageUpdate.mjs +25 -0
  17. package/dist/esm/listeners/PluginMessageUpdate.mjs.map +1 -0
  18. package/dist/esm/listeners/_load.mjs +13 -0
  19. package/dist/esm/listeners/_load.mjs.map +1 -0
  20. package/dist/esm/register.d.mts +13 -0
  21. package/dist/esm/register.mjs +19 -0
  22. package/dist/esm/register.mjs.map +1 -0
  23. package/package.json +34 -18
  24. package/dist/index.d.ts +0 -2
  25. package/dist/index.d.ts.map +0 -1
  26. package/dist/index.js +0 -18
  27. package/dist/index.js.map +0 -1
  28. package/dist/index.mjs +0 -8
  29. package/dist/listeners/PluginMessageUpdate.d.ts +0 -7
  30. package/dist/listeners/PluginMessageUpdate.d.ts.map +0 -1
  31. package/dist/listeners/PluginMessageUpdate.js +0 -27
  32. package/dist/listeners/PluginMessageUpdate.js.map +0 -1
  33. package/dist/listeners/_load.d.ts +0 -2
  34. package/dist/listeners/_load.d.ts.map +0 -1
  35. package/dist/listeners/_load.js +0 -11
  36. package/dist/listeners/_load.js.map +0 -1
  37. package/dist/register.d.ts.map +0 -1
  38. package/dist/register.js +0 -19
  39. package/dist/register.js.map +0 -1
  40. package/dist/register.mjs +0 -4
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var editableCommands = require('@skyra/editable-commands');
4
+
5
+ // src/index.ts
6
+ var version = "4.0.0-pr-512.86f3d06.0";
7
+
8
+ exports.version = version;
9
+ Object.keys(editableCommands).forEach(function (k) {
10
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
11
+ enumerable: true,
12
+ get: function () { return editableCommands[k]; }
13
+ });
14
+ });
15
+ //# sourceMappingURL=out.js.map
16
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";AAAA,cAAc;AAUP,IAAM,UAAkB","sourcesContent":["export * from '@skyra/editable-commands';\n\n/**\n * The [@sapphire/plugin-editable-commands](https://github.com/sapphiredev/plugins/blob/main/packages/editable-commands)\n * version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.0-pr-512.86f3d06.0';\n"]}
@@ -0,0 +1,12 @@
1
+ export * from '@skyra/editable-commands';
2
+
3
+ /**
4
+ * The [@sapphire/plugin-editable-commands](https://github.com/sapphiredev/plugins/blob/main/packages/editable-commands)
5
+ * version that you are currently using.
6
+ * An example use of this is showing it of in a bot information command.
7
+ *
8
+ * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild
9
+ */
10
+ declare const version: string;
11
+
12
+ export { version };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var framework = require('@sapphire/framework');
4
+
5
+ var __defProp = Object.defineProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var _PluginListener = class _PluginListener extends framework.Listener {
8
+ constructor(context) {
9
+ super(context, { event: framework.Events.MessageUpdate });
10
+ }
11
+ run(old, message) {
12
+ if (old.content === message.content)
13
+ return;
14
+ if (message.webhookId !== null)
15
+ return;
16
+ if (message.system)
17
+ return;
18
+ if (message.author.bot)
19
+ return;
20
+ this.container.client.emit(framework.Events.PreMessageParsed, message);
21
+ }
22
+ };
23
+ __name(_PluginListener, "PluginListener");
24
+ var PluginListener = _PluginListener;
25
+
26
+ exports.PluginListener = PluginListener;
27
+ //# sourceMappingURL=out.js.map
28
+ //# sourceMappingURL=PluginMessageUpdate.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,gBAAgB;AAG1B,IAAM,kBAAN,MAAM,wBAAuB,SAAsC;AAAA,EAClE,YAAY,SAAiC;AACnD,UAAM,SAAS,EAAE,OAAO,OAAO,cAAc,CAAC;AAAA,EAC/C;AAAA,EAEgB,IAAI,KAAc,SAAkB;AAEnD,QAAI,IAAI,YAAY,QAAQ;AAAS;AAGrC,QAAI,QAAQ,cAAc;AAAM;AAGhC,QAAI,QAAQ;AAAQ;AAGpB,QAAI,QAAQ,OAAO;AAAK;AAGxB,SAAK,UAAU,OAAO,KAAK,OAAO,kBAAkB,OAAO;AAAA,EAC5D;AACD;AArB0E;AAAnE,IAAM,iBAAN","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message } from 'discord.js';\n\nexport class PluginListener extends Listener<typeof Events.MessageUpdate> {\n\tpublic constructor(context: Listener.LoaderContext) {\n\t\tsuper(context, { event: Events.MessageUpdate });\n\t}\n\n\tpublic override run(old: Message, message: Message) {\n\t\t// If the contents of both messages are the same, return:\n\t\tif (old.content === message.content) return;\n\n\t\t// If the message was sent by a webhook, return:\n\t\tif (message.webhookId !== null) return;\n\n\t\t// If the message was sent by the Discord system, return:\n\t\tif (message.system) return;\n\n\t\t// If the message was sent by a bot, return:\n\t\tif (message.author.bot) return;\n\n\t\t// Run the message parser.\n\t\tthis.container.client.emit(Events.PreMessageParsed, message);\n\t}\n}\n"]}
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var pieces = require('@sapphire/pieces');
4
+ var PluginMessageUpdate_cjs = require('./PluginMessageUpdate.cjs');
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ function loadListeners() {
9
+ const store = "listeners";
10
+ void pieces.container.stores.loadPiece({ name: "PluginMessageUpdate", piece: PluginMessageUpdate_cjs.PluginListener, store });
11
+ }
12
+ __name(loadListeners, "loadListeners");
13
+
14
+ exports.loadListeners = loadListeners;
15
+ //# sourceMappingURL=out.js.map
16
+ //# sourceMappingURL=_load.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":[],"mappings":";;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB,2BAA2B;AAE/C,SAAS,gBAAgB;AAC/B,QAAM,QAAQ;AACd,OAAK,UAAU,OAAO,UAAU,EAAE,MAAM,uBAAuB,OAAO,qBAAqB,MAAM,CAAC;AACnG;AAHgB","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { PluginListener as PluginMessageUpdate } from './PluginMessageUpdate';\n\nexport function loadListeners() {\n\tconst store = 'listeners' as const;\n\tvoid container.stores.loadPiece({ name: 'PluginMessageUpdate', piece: PluginMessageUpdate, store });\n}\n"]}
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var framework = require('@sapphire/framework');
4
+ var _load_cjs = require('./listeners/_load.cjs');
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
8
+ var _EditableCommandsPlugin = class _EditableCommandsPlugin extends framework.Plugin {
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ static [framework.postInitialization]() {
13
+ _load_cjs.loadListeners();
14
+ }
15
+ };
16
+ __name(_EditableCommandsPlugin, "EditableCommandsPlugin");
17
+ var EditableCommandsPlugin = _EditableCommandsPlugin;
18
+ framework.SapphireClient.plugins.registerPostInitializationHook(EditableCommandsPlugin[framework.postInitialization], "EditableCommands-PostInitialization");
19
+
20
+ exports.EditableCommandsPlugin = EditableCommandsPlugin;
21
+ //# sourceMappingURL=out.js.map
22
+ //# sourceMappingURL=register.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAAA,SAAS,QAAQ,oBAAoB,sBAAsB;AAC3D,SAAS,qBAAqB;AAKvB,IAAM,0BAAN,MAAM,gCAA+B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAe,kBAAkB,IAA8B;AAC9D,kBAAc;AAAA,EACf;AACD;AAPmD;AAA5C,IAAM,yBAAN;AASP,eAAe,QAAQ,+BAA+B,uBAAuB,kBAAkB,GAAG,qCAAqC","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './listeners/_load';\n\n/**\n * @since 1.0.0\n */\nexport class EditableCommandsPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postInitialization](this: SapphireClient): void {\n\t\tloadListeners();\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(EditableCommandsPlugin[postInitialization], 'EditableCommands-PostInitialization');\n"]}
@@ -1,11 +1,13 @@
1
1
  import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';
2
+
2
3
  /**
3
4
  * @since 1.0.0
4
5
  */
5
- export declare class EditableCommandsPlugin extends Plugin {
6
+ declare class EditableCommandsPlugin extends Plugin {
6
7
  /**
7
8
  * @since 1.0.0
8
9
  */
9
10
  static [postInitialization](this: SapphireClient): void;
10
11
  }
11
- //# sourceMappingURL=register.d.ts.map
12
+
13
+ export { EditableCommandsPlugin };
@@ -0,0 +1,6 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+
4
+ export { __name };
5
+ //# sourceMappingURL=out.js.map
6
+ //# sourceMappingURL=chunk-G5GHKT7C.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
@@ -0,0 +1,12 @@
1
+ export * from '@skyra/editable-commands';
2
+
3
+ /**
4
+ * The [@sapphire/plugin-editable-commands](https://github.com/sapphiredev/plugins/blob/main/packages/editable-commands)
5
+ * version that you are currently using.
6
+ * An example use of this is showing it of in a bot information command.
7
+ *
8
+ * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild
9
+ */
10
+ declare const version: string;
11
+
12
+ export { version };
@@ -0,0 +1,8 @@
1
+ import './chunk-G5GHKT7C.mjs';
2
+ export * from '@skyra/editable-commands';
3
+
4
+ var version = "4.0.0-pr-512.86f3d06.0";
5
+
6
+ export { version };
7
+ //# sourceMappingURL=out.js.map
8
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,cAAc;AAUP,IAAM,UAAkB","sourcesContent":["export * from '@skyra/editable-commands';\n\n/**\n * The [@sapphire/plugin-editable-commands](https://github.com/sapphiredev/plugins/blob/main/packages/editable-commands)\n * version that you are currently using.\n * An example use of this is showing it of in a bot information command.\n *\n * Note to Sapphire developers: This needs to explicitly be `string` so it is not typed as the string that gets replaced by esbuild\n */\n// eslint-disable-next-line @typescript-eslint/no-inferrable-types\nexport const version: string = '4.0.0-pr-512.86f3d06.0';\n"]}
@@ -0,0 +1,25 @@
1
+ import { __name } from '../chunk-G5GHKT7C.mjs';
2
+ import { Listener, Events } from '@sapphire/framework';
3
+
4
+ var _PluginListener = class _PluginListener extends Listener {
5
+ constructor(context) {
6
+ super(context, { event: Events.MessageUpdate });
7
+ }
8
+ run(old, message) {
9
+ if (old.content === message.content)
10
+ return;
11
+ if (message.webhookId !== null)
12
+ return;
13
+ if (message.system)
14
+ return;
15
+ if (message.author.bot)
16
+ return;
17
+ this.container.client.emit(Events.PreMessageParsed, message);
18
+ }
19
+ };
20
+ __name(_PluginListener, "PluginListener");
21
+ var PluginListener = _PluginListener;
22
+
23
+ export { PluginListener };
24
+ //# sourceMappingURL=out.js.map
25
+ //# sourceMappingURL=PluginMessageUpdate.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,gBAAgB;AAG1B,IAAM,kBAAN,MAAM,wBAAuB,SAAsC;AAAA,EAClE,YAAY,SAAiC;AACnD,UAAM,SAAS,EAAE,OAAO,OAAO,cAAc,CAAC;AAAA,EAC/C;AAAA,EAEgB,IAAI,KAAc,SAAkB;AAEnD,QAAI,IAAI,YAAY,QAAQ;AAAS;AAGrC,QAAI,QAAQ,cAAc;AAAM;AAGhC,QAAI,QAAQ;AAAQ;AAGpB,QAAI,QAAQ,OAAO;AAAK;AAGxB,SAAK,UAAU,OAAO,KAAK,OAAO,kBAAkB,OAAO;AAAA,EAC5D;AACD;AArB0E;AAAnE,IAAM,iBAAN","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message } from 'discord.js';\n\nexport class PluginListener extends Listener<typeof Events.MessageUpdate> {\n\tpublic constructor(context: Listener.LoaderContext) {\n\t\tsuper(context, { event: Events.MessageUpdate });\n\t}\n\n\tpublic override run(old: Message, message: Message) {\n\t\t// If the contents of both messages are the same, return:\n\t\tif (old.content === message.content) return;\n\n\t\t// If the message was sent by a webhook, return:\n\t\tif (message.webhookId !== null) return;\n\n\t\t// If the message was sent by the Discord system, return:\n\t\tif (message.system) return;\n\n\t\t// If the message was sent by a bot, return:\n\t\tif (message.author.bot) return;\n\n\t\t// Run the message parser.\n\t\tthis.container.client.emit(Events.PreMessageParsed, message);\n\t}\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { __name } from '../chunk-G5GHKT7C.mjs';
2
+ import { container } from '@sapphire/pieces';
3
+ import { PluginListener } from './PluginMessageUpdate.mjs';
4
+
5
+ function loadListeners() {
6
+ const store = "listeners";
7
+ void container.stores.loadPiece({ name: "PluginMessageUpdate", piece: PluginListener, store });
8
+ }
9
+ __name(loadListeners, "loadListeners");
10
+
11
+ export { loadListeners };
12
+ //# sourceMappingURL=out.js.map
13
+ //# sourceMappingURL=_load.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB,2BAA2B;AAE/C,SAAS,gBAAgB;AAC/B,QAAM,QAAQ;AACd,OAAK,UAAU,OAAO,UAAU,EAAE,MAAM,uBAAuB,OAAO,qBAAqB,MAAM,CAAC;AACnG;AAHgB","sourcesContent":["import { container } from '@sapphire/pieces';\nimport { PluginListener as PluginMessageUpdate } from './PluginMessageUpdate';\n\nexport function loadListeners() {\n\tconst store = 'listeners' as const;\n\tvoid container.stores.loadPiece({ name: 'PluginMessageUpdate', piece: PluginMessageUpdate, store });\n}\n"]}
@@ -0,0 +1,13 @@
1
+ import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';
2
+
3
+ /**
4
+ * @since 1.0.0
5
+ */
6
+ declare class EditableCommandsPlugin extends Plugin {
7
+ /**
8
+ * @since 1.0.0
9
+ */
10
+ static [postInitialization](this: SapphireClient): void;
11
+ }
12
+
13
+ export { EditableCommandsPlugin };
@@ -0,0 +1,19 @@
1
+ import { __name } from './chunk-G5GHKT7C.mjs';
2
+ import { SapphireClient, postInitialization, Plugin } from '@sapphire/framework';
3
+ import { loadListeners } from './listeners/_load.mjs';
4
+
5
+ var _EditableCommandsPlugin = class _EditableCommandsPlugin extends Plugin {
6
+ /**
7
+ * @since 1.0.0
8
+ */
9
+ static [postInitialization]() {
10
+ loadListeners();
11
+ }
12
+ };
13
+ __name(_EditableCommandsPlugin, "EditableCommandsPlugin");
14
+ var EditableCommandsPlugin = _EditableCommandsPlugin;
15
+ SapphireClient.plugins.registerPostInitializationHook(EditableCommandsPlugin[postInitialization], "EditableCommands-PostInitialization");
16
+
17
+ export { EditableCommandsPlugin };
18
+ //# sourceMappingURL=out.js.map
19
+ //# sourceMappingURL=register.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;;AAAA,SAAS,QAAQ,oBAAoB,sBAAsB;AAC3D,SAAS,qBAAqB;AAKvB,IAAM,0BAAN,MAAM,gCAA+B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAe,kBAAkB,IAA8B;AAC9D,kBAAc;AAAA,EACf;AACD;AAPmD;AAA5C,IAAM,yBAAN;AASP,eAAe,QAAQ,+BAA+B,uBAAuB,kBAAkB,GAAG,qCAAqC","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './listeners/_load';\n\n/**\n * @since 1.0.0\n */\nexport class EditableCommandsPlugin extends Plugin {\n\t/**\n\t * @since 1.0.0\n\t */\n\tpublic static [postInitialization](this: SapphireClient): void {\n\t\tloadListeners();\n\t}\n}\n\nSapphireClient.plugins.registerPostInitializationHook(EditableCommandsPlugin[postInitialization], 'EditableCommands-PostInitialization');\n"]}
package/package.json CHANGED
@@ -1,34 +1,47 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-editable-commands",
3
- "version": "3.1.1-next.eccc557.0",
3
+ "version": "4.0.0-pr-512.86f3d06.0",
4
4
  "description": "Plugin for @sapphire/framework to have editable commands",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
7
- "main": "dist/index.js",
8
- "module": "dist/index.mjs",
9
- "types": "dist/index.d.ts",
7
+ "main": "dist/cjs/index.cjs",
8
+ "module": "dist/esm/index.mjs",
9
+ "types": "dist/cjs/index.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/index.mjs",
14
- "require": "./dist/index.js"
12
+ "import": {
13
+ "types": "./dist/esm/index.d.mts",
14
+ "default": "./dist/esm/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/cjs/index.d.ts",
18
+ "default": "./dist/cjs/index.cjs"
19
+ }
15
20
  },
16
21
  "./register": {
17
- "types": "./dist/register.d.ts",
18
- "import": "./dist/register.mjs",
19
- "require": "./dist/register.js"
22
+ "import": {
23
+ "types": "./dist/esm/register.d.mts",
24
+ "default": "./dist/esm/register.mjs"
25
+ },
26
+ "require": {
27
+ "types": "./dist/cjs/register.d.ts",
28
+ "default": "./dist/cjs/register.cjs"
29
+ }
20
30
  }
21
31
  },
22
32
  "sideEffects": [
23
- "./dist/register.js",
24
- "./dist/register.mjs"
33
+ "./dist/cjs/register.cjs",
34
+ "./dist/esm/register.mjs"
25
35
  ],
26
36
  "homepage": "https://github.com/sapphiredev/plugins/tree/main/packages/editable-commands",
27
37
  "scripts": {
28
38
  "lint": "eslint src --ext ts --fix",
29
- "build": "tsc -b src && yarn esm:register && yarn esm:default",
30
- "esm:register": "gen-esm-wrapper dist/register.js dist/register.mjs",
31
- "esm:default": "gen-esm-wrapper dist/index.js dist/index.mjs",
39
+ "build": "tsup && yarn build:types",
40
+ "build:types": "concurrently \"yarn:build:types:*\"",
41
+ "build:types:cjs": "rollup-type-bundler -d dist/cjs",
42
+ "build:types:esm": "rollup-type-bundler -d dist/esm -t .mts",
43
+ "build:types:cleanup": "tsx ../../scripts/clean-register-imports.mts",
44
+ "typecheck": "tsc -b src",
32
45
  "docs": "typedoc-json-parser",
33
46
  "prepack": "yarn build",
34
47
  "bump": "cliff-jumper",
@@ -68,9 +81,12 @@
68
81
  },
69
82
  "devDependencies": {
70
83
  "@favware/cliff-jumper": "^2.2.3",
71
- "gen-esm-wrapper": "^1.1.3",
72
- "typedoc": "^0.25.3",
84
+ "@favware/rollup-type-bundler": "^3.2.0",
85
+ "concurrently": "^8.2.2",
86
+ "tsup": "^8.0.1",
87
+ "tsx": "^4.6.2",
88
+ "typedoc": "^0.25.4",
73
89
  "typedoc-json-parser": "^9.0.1",
74
- "typescript": "^5.2.2"
90
+ "typescript": "^5.3.2"
75
91
  }
76
92
  }
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from '@skyra/editable-commands';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
package/dist/index.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("@skyra/editable-commands"), exports);
18
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC"}
package/dist/index.mjs DELETED
@@ -1,8 +0,0 @@
1
- import mod from "./index.js";
2
-
3
- export default mod;
4
- export const free = mod.free;
5
- export const get = mod.get;
6
- export const reply = mod.reply;
7
- export const send = mod.send;
8
- export const track = mod.track;
@@ -1,7 +0,0 @@
1
- import { Events, Listener } from '@sapphire/framework';
2
- import type { Message } from 'discord.js';
3
- export declare class PluginListener extends Listener<typeof Events.MessageUpdate> {
4
- constructor(context: Listener.LoaderContext);
5
- run(old: Message, message: Message): void;
6
- }
7
- //# sourceMappingURL=PluginMessageUpdate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginMessageUpdate.d.ts","sourceRoot":"","sources":["../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,qBAAa,cAAe,SAAQ,QAAQ,CAAC,OAAO,MAAM,CAAC,aAAa,CAAC;gBACrD,OAAO,EAAE,QAAQ,CAAC,aAAa;IAIlC,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO;CAgBlD"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PluginListener = void 0;
4
- const framework_1 = require("@sapphire/framework");
5
- class PluginListener extends framework_1.Listener {
6
- constructor(context) {
7
- super(context, { event: framework_1.Events.MessageUpdate });
8
- }
9
- run(old, message) {
10
- // If the contents of both messages are the same, return:
11
- if (old.content === message.content)
12
- return;
13
- // If the message was sent by a webhook, return:
14
- if (message.webhookId !== null)
15
- return;
16
- // If the message was sent by the Discord system, return:
17
- if (message.system)
18
- return;
19
- // If the message was sent by a bot, return:
20
- if (message.author.bot)
21
- return;
22
- // Run the message parser.
23
- this.container.client.emit(framework_1.Events.PreMessageParsed, message);
24
- }
25
- }
26
- exports.PluginListener = PluginListener;
27
- //# sourceMappingURL=PluginMessageUpdate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PluginMessageUpdate.js","sourceRoot":"","sources":["../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":";;;AAAA,mDAAuD;AAGvD,MAAa,cAAe,SAAQ,oBAAqC;IACxE,YAAmB,OAA+B;QACjD,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,kBAAM,CAAC,aAAa,EAAE,CAAC,CAAC;IACjD,CAAC;IAEe,GAAG,CAAC,GAAY,EAAE,OAAgB;QACjD,yDAAyD;QACzD,IAAI,GAAG,CAAC,OAAO,KAAK,OAAO,CAAC,OAAO;YAAE,OAAO;QAE5C,gDAAgD;QAChD,IAAI,OAAO,CAAC,SAAS,KAAK,IAAI;YAAE,OAAO;QAEvC,yDAAyD;QACzD,IAAI,OAAO,CAAC,MAAM;YAAE,OAAO;QAE3B,4CAA4C;QAC5C,IAAI,OAAO,CAAC,MAAM,CAAC,GAAG;YAAE,OAAO;QAE/B,0BAA0B;QAC1B,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAM,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACD;AArBD,wCAqBC"}
@@ -1,2 +0,0 @@
1
- export declare function loadListeners(): void;
2
- //# sourceMappingURL=_load.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_load.d.ts","sourceRoot":"","sources":["../../src/listeners/_load.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa,SAG5B"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadListeners = void 0;
4
- const pieces_1 = require("@sapphire/pieces");
5
- const PluginMessageUpdate_1 = require("./PluginMessageUpdate");
6
- function loadListeners() {
7
- const store = 'listeners';
8
- void pieces_1.container.stores.loadPiece({ name: 'PluginMessageUpdate', piece: PluginMessageUpdate_1.PluginListener, store });
9
- }
10
- exports.loadListeners = loadListeners;
11
- //# sourceMappingURL=_load.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_load.js","sourceRoot":"","sources":["../../src/listeners/_load.ts"],"names":[],"mappings":";;;AAAA,6CAA6C;AAC7C,+DAA8E;AAE9E,SAAgB,aAAa;IAC5B,MAAM,KAAK,GAAG,WAAoB,CAAC;IACnC,KAAK,kBAAS,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,IAAI,EAAE,qBAAqB,EAAE,KAAK,EAAE,oCAAmB,EAAE,KAAK,EAAE,CAAC,CAAC;AACrG,CAAC;AAHD,sCAGC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGjF;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,MAAM;IACjD;;OAEG;WACW,CAAC,kBAAkB,CAAC,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI;CAG9D"}
package/dist/register.js DELETED
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EditableCommandsPlugin = void 0;
4
- const framework_1 = require("@sapphire/framework");
5
- const _load_1 = require("./listeners/_load");
6
- /**
7
- * @since 1.0.0
8
- */
9
- class EditableCommandsPlugin extends framework_1.Plugin {
10
- /**
11
- * @since 1.0.0
12
- */
13
- static [framework_1.postInitialization]() {
14
- (0, _load_1.loadListeners)();
15
- }
16
- }
17
- exports.EditableCommandsPlugin = EditableCommandsPlugin;
18
- framework_1.SapphireClient.plugins.registerPostInitializationHook(EditableCommandsPlugin[framework_1.postInitialization], 'EditableCommands-PostInitialization');
19
- //# sourceMappingURL=register.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"register.js","sourceRoot":"","sources":["../src/register.ts"],"names":[],"mappings":";;;AAAA,mDAAiF;AACjF,6CAAkD;AAElD;;GAEG;AACH,MAAa,sBAAuB,SAAQ,kBAAM;IACjD;;OAEG;IACI,MAAM,CAAC,CAAC,8BAAkB,CAAC;QACjC,IAAA,qBAAa,GAAE,CAAC;IACjB,CAAC;CACD;AAPD,wDAOC;AAED,0BAAc,CAAC,OAAO,CAAC,8BAA8B,CAAC,sBAAsB,CAAC,8BAAkB,CAAC,EAAE,qCAAqC,CAAC,CAAC"}
package/dist/register.mjs DELETED
@@ -1,4 +0,0 @@
1
- import mod from "./register.js";
2
-
3
- export default mod;
4
- export const EditableCommandsPlugin = mod.EditableCommandsPlugin;