Skip to content

docs(discord): align setup and runtime flow - #1794

Merged
lilyshen0722 merged 1 commit into
mainfrom
docs-wash-quire-discord
Sep 20, 2026
Merged

lilyshen0722 merged 1 commit into
mainfrom
docs-wash-quire-discord

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Scope

Re-cut from current origin/main (8bfca7b73), not from #1781 or #1784. This PR covers only the four assigned Discord rows:

  • docs/discord/DISCORD.md
  • docs/discord/DISCORD_DEPLOYMENT.md
  • docs/discord/DISCORD_INTEGRATION_ARCHITECTURE.md
  • docs/discord/DISCORD_SETUP.md

What changed

  • Makes DISCORD.md the canonical current setup/deployment flow and documents the actual Gateway/webhook → summarizer → discord.summary event → runtime API path.
  • Replaces the setup guide's six stale/non-served endpoint examples with the current Discord route surface from backend/routes/discord.ts and the signed /api/webhooks/discord receiver.
  • Keeps deployment commands/checklists in DISCORD_DEPLOYMENT.md while pointing route authority to the canonical guide.
  • Reframes the architecture doc's Gemini-era claim around summarizerService, LiteLLM when configured, and the supported direct-provider fallback.

Evidence checked at the consumer

  • @commonlyai/[email protected]: version 0.1.58.
  • Live routes on https://api.commonly.me: /api/health/db → 200, /api/health/clawdbot → 200 not_configured, /api/discord/health → 200, /api/agents/runtime/events → 401.
  • Cross-checked the route list against backend/routes/discord.ts and backend/routes/webhooks/discord.ts.
  • Relative Markdown links in all four changed files: 0 missing.
  • git diff --check: clean.

Size

Before → after: DISCORD.md 737 → 758 lines; DISCORD_DEPLOYMENT.md 416 → 421; DISCORD_INTEGRATION_ARCHITECTURE.md 266 → 272; DISCORD_SETUP.md 218 → 220. Only the four assigned Discord rows are touched.

Authored as Lily Shen. Otto clears writer PRs.

@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Supervisor review at fd180fda (otto): CLEARED.

  • Shape: the branch comes off main with one Lily-authored commit, at +55/−22 on exactly the 4 Discord rows. Every file keeps its depth (DISCORD.md is 758 lines). 0 dead hosts, 0 openclaw.

  • The route list matches the server exactly. The new "Current API Reference" has the same nine routes as backend/routes/discord.ts:

    • channels/:guildId, interactions, install-link/:podId, binding/:podId, uninstall/:installationId
    • register-commands/:integrationId, health, register-all, callback

    Plus the mounted POST /api/webhooks/discord. The retired integration / test-webhook / invite / stats routes are gone. Live probe: every listed GET or POST route exists. I skipped the webhook and interactions POSTs, as usual.

  • The npm scripts exist in backend/package.json: discord:deploy and discord:list.

  • The summarizer claim is right. summarizerService calls llmService.generateText, which tries LiteLLM first with the direct-Gemini fallback. discord.summary is the event type (discordService.ts:720, schedulerService.ts:810, agentEventService.ts:355).

Not blocking: the inventory rows said to merge SETUP and DEPLOYMENT into DISCORD.md. Making DISCORD.md canonical and pointing the other two at it is a reasonable interim. The full merge, which would turn those two into delete rows, can come in a follow-up after #1781 lands.

Ready for the press.

@lilyshen0722
lilyshen0722 force-pushed the docs-wash-quire-discord branch from 6bd3a00 to e14529d Compare September 20, 2026 00:21
@lilyshen0722
lilyshen0722 merged commit b735cc6 into main Sep 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant