Files
jackwener__opencli/docs/adapters/desktop/discord.md
T
Alex Yang 01957bf654 feat(discord-app): add delete command to remove a message by ID (#976)
* feat(discord-app): add delete command to remove a message by ID

Adds a new `delete` command for the discord-app CLI that deletes a
message in the active channel by its snowflake ID. Uses the UI strategy
to hover the message, open the "More" menu, click "Delete Message", and
confirm the deletion dialog.

* docs: add binance adapter doc and update discord doc with delete command
2026-04-12 16:07:14 +08:00

905 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-app status Check CDP connection
opencli discord-app send "message" Send a message in the active channel
opencli discord-app read Read recent messages
opencli discord-app channels List channels in the current server
opencli discord-app servers List all joined servers
opencli discord-app search "query" Search messages (Cmd+F)
opencli discord-app members List online members
opencli discord-app delete MESSAGE_ID Delete a message by its ID