@nextclaw/channel-extension-discord 0.2.20 → 0.2.22

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/main.js CHANGED
@@ -1,9 +1,11 @@
1
- import { DiscordChannel } from "./services/discord-channel.service.js";
2
1
  import { startBusChannelExtension, warnNcpEventError } from "@nextclaw/extension-sdk";
3
2
  //#region src/main.ts
4
3
  await startBusChannelExtension({
5
4
  channelId: "discord",
6
- createChannel: ({ config, bus, channel }) => new DiscordChannel(config, bus, channel.commands),
5
+ createChannel: async ({ config, bus, channel }) => {
6
+ const { DiscordChannel } = await import("./services/discord-channel.service.js");
7
+ return new DiscordChannel(config, bus, channel.commands);
8
+ },
7
9
  onChannelStartError: warnNcpEventError("discord")
8
10
  });
9
11
  //#endregion
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["import type { Config, MessageBus } from \"@nextclaw/core\";\nimport { startBusChannelExtension, warnNcpEventError } from \"@nextclaw/extension-sdk\";\nimport { DiscordChannel } from \"./services/discord-channel.service.js\";\n\nawait startBusChannelExtension<Config[\"channels\"][\"discord\"], MessageBus>({\n channelId: \"discord\",\n createChannel: ({ config, bus, channel }) => new DiscordChannel(config, bus, channel.commands),\n onChannelStartError: warnNcpEventError(\"discord\"),\n});\n"],"mappings":";;;AAIA,MAAM,yBAAoE;CACxE,WAAW;CACX,gBAAgB,EAAE,QAAQ,KAAK,cAAc,IAAI,eAAe,QAAQ,KAAK,QAAQ,SAAS;CAC9F,qBAAqB,kBAAkB,UAAU;CAClD,CAAC"}
1
+ {"version":3,"file":"main.js","names":[],"sources":["../src/main.ts"],"sourcesContent":["import type { Config, MessageBus } from \"@nextclaw/core\";\nimport { startBusChannelExtension, warnNcpEventError } from \"@nextclaw/extension-sdk\";\n\nawait startBusChannelExtension<Config[\"channels\"][\"discord\"], MessageBus>({\n channelId: \"discord\",\n createChannel: async ({ config, bus, channel }) => {\n const { DiscordChannel } = await import(\"./services/discord-channel.service.js\");\n return new DiscordChannel(config, bus, channel.commands);\n },\n onChannelStartError: warnNcpEventError(\"discord\"),\n});\n"],"mappings":";;AAGA,MAAM,yBAAoE;CACxE,WAAW;CACX,eAAe,OAAO,EAAE,QAAQ,KAAK,cAAc;EACjD,MAAM,EAAE,mBAAmB,MAAM,OAAO;AACxC,SAAO,IAAI,eAAe,QAAQ,KAAK,QAAQ,SAAS;;CAE1D,qBAAqB,kBAAkB,UAAU;CAClD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/channel-extension-discord",
3
- "version": "0.2.20",
3
+ "version": "0.2.22",
4
4
  "private": false,
5
5
  "description": "NextClaw Discord channel extension process.",
6
6
  "type": "module",
@@ -19,8 +19,8 @@
19
19
  "dependencies": {
20
20
  "discord.js": "^14.16.3",
21
21
  "undici": "^6.21.0",
22
- "@nextclaw/core": "0.15.20",
23
- "@nextclaw/extension-sdk": "0.3.19"
22
+ "@nextclaw/core": "0.15.22",
23
+ "@nextclaw/extension-sdk": "0.3.21"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/node": "^20.17.6",