summaryrefslogtreecommitdiff
path: root/external_plugins/discord
AgeCommit message (Collapse)Author
2026-08-12Drop the conditional reload note from discord and telegram READMEsreadme-one-command-installMohamed Hegazy
2026-08-12Update install instructions to the one-command plugin installMohamed Hegazy
Claude Code's /plugin install now registers the official marketplace automatically and activates the plugin in the same session, so the /reload-plugins step these READMEs document is no longer needed. discord and telegram keep a conditional note because their MCP servers can't always be activated mid-session.
2026-04-14fix(discord): use cached author.id when DMChannel.recipientId is null (#1365)Daisy S. Hollman
DMChannel.recipientId can be null when client.channels.fetch() returns a DM channel with a cold cache. The inbound gate correctly uses msg.author.id, but fetchAllowedChannel relied on recipientId, so replies to allowlisted DMs intermittently failed with "channel not allowlisted" after session restart. Maintain a channelId→userId map populated during inbound handling and fall back to it when recipientId is null. Fixes anthropics/claude-code#40576 Fixes anthropics/claude-code#41647 :house: Remote-Dev: homespace
2026-04-03Merge pull request #885 from anthropics/sarah/restore-reload-plugins-readmeSarah Deaton
Restore /reload-plugins step in telegram/discord READMEs
2026-03-23feat(telegram,discord): compact permission messages with expandable details ↵Noah Zweben
(#952) * feat(telegram,discord): compact permission messages with expandable details Replace verbose permission request messages with a compact format showing only the tool name. Adds a "See more" button that expands inline to show tool_name, description, and pretty-printed input_preview JSON. Yes/No buttons replace Allow/Deny. Bump plugin versions to 0.0.4. * revert: restore Allow/Deny button labels
2026-03-23feat(telegram,discord): inline buttons for permission approval (#945)Daisy S. Hollman
Replace "Reply 'yes abcde' to allow" text instruction with native inline buttons (Telegram InlineKeyboard, Discord ButtonBuilder). One tap to approve/deny instead of typing a 5-char ID. - Telegram: callback_query handler with allowFrom gate, edits message to show outcome and remove buttons after decision - Discord: interactionCreate handler with allowFrom gate, updates interaction with outcome and clears components - Text-reply path (PERMISSION_REPLY_RE) kept as fallback - Bump both plugins to v0.0.3 :house: Remote-Dev: homespace
2026-03-23feat(telegram,discord): permission-relay capability + bidirectional handlersdaisy/plugin-7/channel-permissionsDaisy Hollman
Complete the plugin side of anthropics/claude-cli-internal#23061 (permission prompts over channels). Capability: both servers now declare experimental["claude/channel/permission"] which tells CC they can relay permission requests. This capability asserts the server authenticates the replier — gate()/access.allowFrom filters non-allowlisted senders before handleInbound runs. Outbound (CC → user): setNotificationHandler for notifications/claude/channel/permission_request formats the tool name, description, and input preview into a human-readable message and sends it to every allowlisted DM. Groups are excluded — the security thread resolution was "single-user mode for official plugins." Inbound (user → CC): PERMISSION_REPLY_RE intercept in handleInbound catches "yes xxxxx" / "no xxxxx" replies, emits the structured notifications/claude/channel/permission event with {request_id, behavior}, reacts with checkmark/cross, and returns without relaying the text to Claude as a chat message. The regex is inlined from channelPermissions.ts (no cross-repo dep). IDs are lowercased at the plugin boundary per the case-insensitive spec. Version bumped 0.0.1 → 0.0.2 so the plugin reconciler picks up the change. :house: Remote-Dev: homespace
2026-03-21Drop tab-complete check, keep just /reload-plugins linesarah/restore-reload-plugins-readmeSarah Deaton
2026-03-21Restore /reload-plugins step in telegram/discord READMEsSarah Deaton
Partially reverts #758. The reload step is not redundant: the configure skill runs before the restart step, so it is not loaded yet when the user types /telegram:configure. CLI prints 'Run /reload-plugins to activate.' after install (pluginInstallationHelpers.ts:529). Mintlify reports confirm users hit 'Unknown skill: discord:configure' at step 3.
2026-03-20Merge remote-tracking branch 'origin/kenneth/discord-resilience' into ↵Kenneth Lien
kenneth/channels-rollup
2026-03-20Merge remote-tracking branch 'origin/kenneth/discord-edit-notif-guidance' ↵Kenneth Lien
into kenneth/channels-rollup
2026-03-20discord: port resilience fixes from telegramkenneth/discord-resilienceKenneth Lien
Same patterns as #812/#813 for the discord channel: - process-level unhandledRejection/uncaughtException handlers - client.on('error') to log discord.js errors - mcp.notification().catch() so inbound delivery failures surface - stdin close / SIGTERM -> client.destroy() + exit (zombie fix) - .unref() the approval-check interval - client.login().catch() to log+exit on bad token instead of crashing Discord is inherently more resilient than telegram (discord.js auto-reconnects, no 409 equivalent), but these gaps were still there.
2026-03-20discord/telegram: guide assistant to send new reply on completionkenneth/discord-edit-notif-guidanceKenneth Lien
Message edits don't trigger push notifications on the user's device. Update system instructions and edit_message tool description to steer the assistant toward edit-for-progress + new-reply-on-completion. Fixes #786
2026-03-20telegram/discord: make state dir configurable via env varkenneth/channels-state-dirKenneth Lien
Hardcoded ~/.claude/channels/<name>/ meant only one bot per machine. Respect TELEGRAM_STATE_DIR / DISCORD_STATE_DIR so users can run multiple bots with separate tokens and allowlists. Also fixed README path ('in your project' -> '~/...') to match the code. Fixes #792
2026-03-20Merge pull request #811 from anthropics/kenneth/chmod-env-filesKenneth Lien
Lock telegram/discord .env files to owner (chmod 600)
2026-03-20Lock telegram/discord .env files to owner (chmod 600)kenneth/chmod-env-filesKenneth Lien
The bot token is a credential. Tighten perms on load so hand-written or pre-existing .env files get locked down, and update the configure skill to chmod after writing. No-op on Windows.
2026-03-19README clarifications from docs walkthrough testingdocs/readme-clarificationsSarah Deaton
- Drop /reload-plugins (redundant, you restart with --channels next) - Fix token save path: .claude/channels/ not ~/.claude/channels/ - Clarify bot only responds once channel is running (pairing step)
2026-03-19Add Bun prerequisite to discord and telegram plugin READMEskenneth/add-bun-prereqKenneth Lien
Both MCP servers run on Bun, but this wasn't documented. Add a Prerequisites section with the install command so users don't hit a missing-runtime error on first setup.
2026-03-19Revert "Remove telegram, discord, and fakechat plugins (#741)" (#753)Kenneth Lien
This reverts commit d53f6ca4cdb000c671dfdc1c181b021e97c25505.
2026-03-18Remove telegram, discord, and fakechat plugins (#741)Noah Zweben
Remove the three chat bridge plugins from external_plugins/ and their corresponding entries in marketplace.json. Co-authored-by: Claude <noreply@anthropic.com>
2026-03-18Add discord channel plugin (#736)Kenneth Lien
Discord messaging bridge for Claude Code. Runs a local MCP server that connects to Discord's Gateway via a user-created bot token. Built-in access control: inbound messages are gated by an allowlist (default: pairing mode), outbound sends are scoped to the same allowlist. Guild channels require opt-in and @mention. The /discord:access skill manages pairing, allowlists, and policy. Ships full source — server.ts runs locally via bun, started by the .mcp.json command.