Skip to content

nanocoai/nanoclaw / .claude/skills/add-discord

add-discord

Verified

Add Discord bot channel integration via Chat SDK.

FileKindSize
REMOVE.mdmarkdown908 B
SKILL.mdskill md10.6 KB
apply-fixtures.jsonconfig760 B
patches/@chat-adapter__discord@4.41.1.patchother1022 B

patches/@chat-adapter__discord@4.41.1.patch

View on GitHub
diff --git a/dist/index.js b/dist/index.js
index eb26e8b64d77593219f278f2aed27ceddfc2111c..1ea704079af81656c116e5f0ec4b72534eab5fcc 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2494,9 +2494,14 @@ var DiscordAdapter = class _DiscordAdapter {
         this.logger.info("Discord Gateway forwarding event", {
           type: packet.t
         });
+        // Snapshot before yielding: discord.js handles this same packet object
+        // in this turn and patches it in place (MessageMentions.js assigns
+        // mention.member.user = mention), which makes it circular. Backport of
+        // vercel/chat 81e1a8c (@chat-adapter/discord 4.42.0).
+        const wire = { ...packet, d: structuredClone(packet.d) };
         await this.enqueueOrderedForward(
-          getPacketChannelId(packet),
-          () => this.forwardRawGatewayPacket(client, webhookUrl, packet)
+          getPacketChannelId(wire),
+          () => this.forwardRawGatewayPacket(client, webhookUrl, wire)
         );
       });
     } else {
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall