@sapphire/plugin-editable-commands 4.0.5-next.ebf804c → 4.0.5-next.f9d9e4d

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.
@@ -4,7 +4,7 @@ var editableCommands = require('@skyra/editable-commands');
4
4
  var _load_cjs = require('./listeners/_load.cjs');
5
5
 
6
6
  // src/index.ts
7
- var version = "4.0.5-next.ebf804c";
7
+ var version = "4.0.5-next.f9d9e4d";
8
8
 
9
9
  Object.defineProperty(exports, "loadListeners", {
10
10
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAYO,IAAM,OAAkB,GAAA","file":"index.cjs","sourcesContent":["export * from '@skyra/editable-commands';\n\nexport { loadListeners } from './listeners/_load';\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.5-next.ebf804c';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAYO,IAAM,OAAA,GAAkB","file":"index.cjs","sourcesContent":["export * from '@skyra/editable-commands';\n\nexport { loadListeners } from './listeners/_load';\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.5-next.f9d9e4d';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":["Listener","Events"],"mappings":";;;;;;AAGO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuBA,kBAAsC,CAAA;AAAA,EAClE,YAAY,OAAiC,EAAA;AACnD,IAAA,KAAA,CAAM,OAAS,EAAA,EAAE,KAAO,EAAAC,gBAAA,CAAO,eAAe,CAAA;AAAA;AAC/C,EAEgB,GAAA,CAAI,KAAmE,OAAkB,EAAA;AAExG,IAAI,IAAA,GAAA,CAAI,OAAY,KAAA,OAAA,CAAQ,OAAS,EAAA;AAGrC,IAAI,IAAA,OAAA,CAAQ,cAAc,IAAM,EAAA;AAGhC,IAAA,IAAI,QAAQ,MAAQ,EAAA;AAGpB,IAAI,IAAA,OAAA,CAAQ,OAAO,GAAK,EAAA;AAGxB,IAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAO,IAAK,CAAAA,gBAAA,CAAO,kBAAkB,OAAO,CAAA;AAAA;AAE7D,CAAA;AArB0E,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAnE,IAAM,cAAN,GAAA","file":"PluginMessageUpdate.cjs","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message, OmitPartialGroupDMChannel, PartialMessage } 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: OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>, 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"]}
1
+ {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":["Listener","Events"],"mappings":";;;;;;AAGO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuBA,kBAAA,CAAsC;AAAA,EAClE,YAAY,OAAA,EAAiC;AACnD,IAAA,KAAA,CAAM,OAAA,EAAS,EAAE,KAAA,EAAOC,gBAAA,CAAO,eAAe,CAAA;AAAA,EAC/C;AAAA,EAEgB,GAAA,CAAI,KAAmE,OAAA,EAAkB;AAExG,IAAA,IAAI,GAAA,CAAI,OAAA,KAAY,OAAA,CAAQ,OAAA,EAAS;AAGrC,IAAA,IAAI,OAAA,CAAQ,cAAc,IAAA,EAAM;AAGhC,IAAA,IAAI,QAAQ,MAAA,EAAQ;AAGpB,IAAA,IAAI,OAAA,CAAQ,OAAO,GAAA,EAAK;AAGxB,IAAA,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,IAAA,CAAKA,gBAAA,CAAO,kBAAkB,OAAO,CAAA;AAAA,EAC5D;AACD,CAAA;AArB0E,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAnE,IAAM,cAAA,GAAN","file":"PluginMessageUpdate.cjs","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message, OmitPartialGroupDMChannel, PartialMessage } 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: OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>, 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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":["container","PluginMessageUpdate"],"mappings":";;;;;;;AAGO,SAAS,aAAgB,GAAA;AAC/B,EAAA,MAAM,KAAQ,GAAA,WAAA;AACd,EAAK,KAAAA,gBAAA,CAAU,OAAO,SAAU,CAAA,EAAE,MAAM,qBAAuB,EAAA,KAAA,EAAOC,sCAAqB,EAAA,KAAA,EAAO,CAAA;AACnG;AAHgB,MAAA,CAAA,aAAA,EAAA,eAAA,CAAA","file":"_load.cjs","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"]}
1
+ {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":["container","PluginMessageUpdate"],"mappings":";;;;;;;AAGO,SAAS,aAAA,GAAgB;AAC/B,EAAA,MAAM,KAAA,GAAQ,WAAA;AACd,EAAA,KAAKA,gBAAA,CAAU,OAAO,SAAA,CAAU,EAAE,MAAM,qBAAA,EAAuB,KAAA,EAAOC,sCAAA,EAAqB,KAAA,EAAO,CAAA;AACnG;AAHgB,MAAA,CAAA,aAAA,EAAA,eAAA,CAAA","file":"_load.cjs","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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","postInitialization","loadListeners","SapphireClient"],"mappings":";;;;;;;AAMO,IAAM,uBAAA,GAAN,MAAM,uBAAA,SAA+BA,gBAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAeC,4BAAkB,CAA8B,GAAA;AAC9D,IAAcC,uBAAA,EAAA;AAAA;AAEhB,CAAA;AAPmD,MAAA,CAAA,uBAAA,EAAA,wBAAA,CAAA;AAA5C,IAAM,sBAAN,GAAA;AASPC,wBAAA,CAAe,OAAQ,CAAA,8BAAA,CAA+B,sBAAuB,CAAAF,4BAAkB,GAAG,qCAAqC,CAAA","file":"register.cjs","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './index';\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
+ {"version":3,"sources":["../../src/register.ts"],"names":["Plugin","postInitialization","loadListeners","SapphireClient"],"mappings":";;;;;;;AAMO,IAAM,uBAAA,GAAN,MAAM,uBAAA,SAA+BA,gBAAA,CAAO;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAeC,4BAAkB,CAAA,GAA8B;AAC9D,IAAAC,uBAAA,EAAc;AAAA,EACf;AACD,CAAA;AAPmD,MAAA,CAAA,uBAAA,EAAA,wBAAA,CAAA;AAA5C,IAAM,sBAAA,GAAN;AASPC,wBAAA,CAAe,OAAA,CAAQ,8BAAA,CAA+B,sBAAA,CAAuBF,4BAAkB,GAAG,qCAAqC,CAAA","file":"register.cjs","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './index';\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"]}
@@ -2,7 +2,7 @@ import './chunk-PAWJFY3S.mjs';
2
2
  export * from '@skyra/editable-commands';
3
3
  export { loadListeners } from './listeners/_load.mjs';
4
4
 
5
- var version = "4.0.5-next.ebf804c";
5
+ var version = "4.0.5-next.f9d9e4d";
6
6
 
7
7
  export { version };
8
8
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAYO,IAAM,OAAkB,GAAA","file":"index.mjs","sourcesContent":["export * from '@skyra/editable-commands';\n\nexport { loadListeners } from './listeners/_load';\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.5-next.ebf804c';\n"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAYO,IAAM,OAAA,GAAkB","file":"index.mjs","sourcesContent":["export * from '@skyra/editable-commands';\n\nexport { loadListeners } from './listeners/_load';\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.5-next.f9d9e4d';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":";;;AAGO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuB,QAAsC,CAAA;AAAA,EAClE,YAAY,OAAiC,EAAA;AACnD,IAAA,KAAA,CAAM,OAAS,EAAA,EAAE,KAAO,EAAA,MAAA,CAAO,eAAe,CAAA;AAAA;AAC/C,EAEgB,GAAA,CAAI,KAAmE,OAAkB,EAAA;AAExG,IAAI,IAAA,GAAA,CAAI,OAAY,KAAA,OAAA,CAAQ,OAAS,EAAA;AAGrC,IAAI,IAAA,OAAA,CAAQ,cAAc,IAAM,EAAA;AAGhC,IAAA,IAAI,QAAQ,MAAQ,EAAA;AAGpB,IAAI,IAAA,OAAA,CAAQ,OAAO,GAAK,EAAA;AAGxB,IAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAO,IAAK,CAAA,MAAA,CAAO,kBAAkB,OAAO,CAAA;AAAA;AAE7D,CAAA;AArB0E,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAnE,IAAM,cAAN,GAAA","file":"PluginMessageUpdate.mjs","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message, OmitPartialGroupDMChannel, PartialMessage } 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: OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>, 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"]}
1
+ {"version":3,"sources":["../../../src/listeners/PluginMessageUpdate.ts"],"names":[],"mappings":";;;AAGO,IAAM,eAAA,GAAN,MAAM,eAAA,SAAuB,QAAA,CAAsC;AAAA,EAClE,YAAY,OAAA,EAAiC;AACnD,IAAA,KAAA,CAAM,OAAA,EAAS,EAAE,KAAA,EAAO,MAAA,CAAO,eAAe,CAAA;AAAA,EAC/C;AAAA,EAEgB,GAAA,CAAI,KAAmE,OAAA,EAAkB;AAExG,IAAA,IAAI,GAAA,CAAI,OAAA,KAAY,OAAA,CAAQ,OAAA,EAAS;AAGrC,IAAA,IAAI,OAAA,CAAQ,cAAc,IAAA,EAAM;AAGhC,IAAA,IAAI,QAAQ,MAAA,EAAQ;AAGpB,IAAA,IAAI,OAAA,CAAQ,OAAO,GAAA,EAAK;AAGxB,IAAA,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,kBAAkB,OAAO,CAAA;AAAA,EAC5D;AACD,CAAA;AArB0E,MAAA,CAAA,eAAA,EAAA,gBAAA,CAAA;AAAnE,IAAM,cAAA,GAAN","file":"PluginMessageUpdate.mjs","sourcesContent":["import { Events, Listener } from '@sapphire/framework';\nimport type { Message, OmitPartialGroupDMChannel, PartialMessage } 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: OmitPartialGroupDMChannel<Message<boolean> | PartialMessage>, 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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":["PluginMessageUpdate"],"mappings":";;;;AAGO,SAAS,aAAgB,GAAA;AAC/B,EAAA,MAAM,KAAQ,GAAA,WAAA;AACd,EAAK,KAAA,SAAA,CAAU,OAAO,SAAU,CAAA,EAAE,MAAM,qBAAuB,EAAA,KAAA,EAAOA,cAAqB,EAAA,KAAA,EAAO,CAAA;AACnG;AAHgB,MAAA,CAAA,aAAA,EAAA,eAAA,CAAA","file":"_load.mjs","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"]}
1
+ {"version":3,"sources":["../../../src/listeners/_load.ts"],"names":["PluginMessageUpdate"],"mappings":";;;;AAGO,SAAS,aAAA,GAAgB;AAC/B,EAAA,MAAM,KAAA,GAAQ,WAAA;AACd,EAAA,KAAK,SAAA,CAAU,OAAO,SAAA,CAAU,EAAE,MAAM,qBAAA,EAAuB,KAAA,EAAOA,cAAA,EAAqB,KAAA,EAAO,CAAA;AACnG;AAHgB,MAAA,CAAA,aAAA,EAAA,eAAA,CAAA","file":"_load.mjs","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"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAMO,IAAM,uBAAA,GAAN,MAAM,uBAAA,SAA+B,MAAO,CAAA;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAe,kBAAkB,CAA8B,GAAA;AAC9D,IAAc,aAAA,EAAA;AAAA;AAEhB,CAAA;AAPmD,MAAA,CAAA,uBAAA,EAAA,wBAAA,CAAA;AAA5C,IAAM,sBAAN,GAAA;AASP,cAAA,CAAe,OAAQ,CAAA,8BAAA,CAA+B,sBAAuB,CAAA,kBAAkB,GAAG,qCAAqC,CAAA","file":"register.mjs","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './index';\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
+ {"version":3,"sources":["../../src/register.ts"],"names":[],"mappings":";;;;AAMO,IAAM,uBAAA,GAAN,MAAM,uBAAA,SAA+B,MAAA,CAAO;AAAA;AAAA;AAAA;AAAA,EAIlD,QAAe,kBAAkB,CAAA,GAA8B;AAC9D,IAAA,aAAA,EAAc;AAAA,EACf;AACD,CAAA;AAPmD,MAAA,CAAA,uBAAA,EAAA,wBAAA,CAAA;AAA5C,IAAM,sBAAA,GAAN;AASP,cAAA,CAAe,OAAA,CAAQ,8BAAA,CAA+B,sBAAA,CAAuB,kBAAkB,GAAG,qCAAqC,CAAA","file":"register.mjs","sourcesContent":["import { Plugin, postInitialization, SapphireClient } from '@sapphire/framework';\nimport { loadListeners } from './index';\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,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapphire/plugin-editable-commands",
3
- "version": "4.0.5-next.ebf804c",
3
+ "version": "4.0.5-next.f9d9e4d",
4
4
  "description": "Plugin for @sapphire/framework to have editable commands",
5
5
  "author": "@sapphire",
6
6
  "license": "MIT",
@@ -82,9 +82,9 @@
82
82
  "devDependencies": {
83
83
  "@favware/cliff-jumper": "^6.0.0",
84
84
  "@favware/rollup-type-bundler": "^4.0.0",
85
- "concurrently": "^9.1.2",
86
- "tsup": "^8.3.5",
87
- "tsx": "^4.19.2",
85
+ "concurrently": "^9.2.0",
86
+ "tsup": "^8.5.0",
87
+ "tsx": "^4.20.4",
88
88
  "typedoc": "^0.26.11",
89
89
  "typedoc-json-parser": "^10.2.0",
90
90
  "typescript": "~5.4.5"