Desktop Electron app adapters should use '-app' suffix when a web version also exists.
764 B
764 B
Discord Desktop Adapter
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 |
|---|---|
discord status |
Check CDP connection |
discord send "message" |
Send a message in the active channel |
discord read |
Read recent messages |
discord channels |
List channels in the current server |
discord servers |
List all joined servers |
discord search "query" |
Search messages (Cmd+F) |
discord members |
List online members |