Files
jackwener__opencli/docs/adapters/desktop/discord.md
AlexYue 31f58ae699 docs: add VitePress documentation site (#112)
- Add VitePress with full navigation, sidebar, i18n (en/zh), local search
- Create 50+ doc pages: guide, adapters (browser + desktop), developer, advanced
- Migrate content from README.md, CONTRIBUTING.md, TESTING.md, CDP.md, CLI-ELECTRON.md
- Migrate all 11 adapter READMEs to structured documentation
- Add new pages: architecture, yaml-adapter guide, ts-adapter guide, ai-workflow
- Add GitHub Actions workflow for deploying to GitHub Pages
- Add Chinese locale pages (getting-started, installation, browser-bridge, etc.)
- Add docs:dev, docs:build, docs:preview npm scripts
2026-03-20 14:11:56 +08:00

804 B

Discord

Control the Discord Desktop App from the terminal via Chrome DevTools Protocol (CDP).

Prerequisites

Launch with remote debugging port:

/Applications/Discord.app/Contents/MacOS/Discord --remote-debugging-port=9232

Setup

export OPENCLI_CDP_ENDPOINT="http://127.0.0.1:9232"

Commands

Command Description
opencli discord status Check CDP connection
opencli discord send "message" Send a message in the active channel
opencli discord read Read recent messages
opencli discord channels List channels in the current server
opencli discord servers List all joined servers
opencli discord search "query" Search messages (Cmd+F)
opencli discord members List online members