nanocoai/nanoclaw / .claude/skills/add-discord
add-discord
VerifiedAdd Discord bot channel integration via Chat SDK.
| File | Kind | Size |
|---|---|---|
| REMOVE.md | markdown | 908 B |
| SKILL.md | skill md | 10.6 KB |
| apply-fixtures.json | config | 760 B |
| patches/@chat-adapter__discord@4.41.1.patch | other | 1022 B |
patches/@chat-adapter__discord@4.41.1.patch
View on GitHubdiff --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 {
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| 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: 198k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| 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: 194k | Updated | Claude CodeCodex | Verified | Install |