@gonzih/cc-discord 0.2.6 → 0.2.7

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 (2) hide show
  1. package/dist/bot.js +6 -0
  2. package/package.json +1 -1
package/dist/bot.js CHANGED
@@ -1150,6 +1150,9 @@ export class CcDiscordBot {
1150
1150
  }
1151
1151
  await this.sendToChannelById(channelId, `✅ Goal completed: ${loopState.goal.slice(0, 100)}`);
1152
1152
  await this.loopManager.endLoop(channelId);
1153
+ if (thread && thread.isThread()) {
1154
+ await thread.setArchived(true).catch(() => { });
1155
+ }
1153
1156
  }
1154
1157
  else if (emoji === "❌") {
1155
1158
  if (thread) {
@@ -1157,6 +1160,9 @@ export class CcDiscordBot {
1157
1160
  }
1158
1161
  await this.sendToChannelById(channelId, `❌ Loop killed: ${loopState.goal.slice(0, 100)}`);
1159
1162
  await this.loopManager.endLoop(channelId);
1163
+ if (thread && thread.isThread()) {
1164
+ await thread.setArchived(true).catch(() => { });
1165
+ }
1160
1166
  }
1161
1167
  }
1162
1168
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gonzih/cc-discord",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Claude Code Discord bot — chat with Claude Code via Discord",
5
5
  "type": "module",
6
6
  "bin": {