Skip to content

feat(discord-app): add delete command to remove a message by ID#976

Merged
jackwener merged 2 commits intojackwener:mainfrom
himself65:feat/discord-delete-message
Apr 12, 2026
Merged

feat(discord-app): add delete command to remove a message by ID#976
jackwener merged 2 commits intojackwener:mainfrom
himself65:feat/discord-delete-message

Conversation

@himself65
Copy link
Copy Markdown
Contributor

Summary

  • Adds a new delete command for discord-app that removes a message by its snowflake ID
  • Uses the UI strategy: hovers the message to reveal the toolbar, clicks "More", selects "Delete Message", and confirms the dialog
  • Validates the message ID format and provides clear error messages for each failure mode

Usage

opencli discord-app delete <message_id>

Message IDs can be obtained via Discord's Developer Mode (right-click → Copy Message ID) or from DOM inspection with opencli discord-app read.

Test plan

  • Verify delete command appears in opencli discord-app --help
  • Delete own message by ID in an active channel
  • Confirm error message when message ID is not found
  • Confirm error message when user lacks delete permission
  • Ensure npm run build succeeds and manifest includes the new command

🤖 Generated with Claude Code

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.
@jackwener jackwener merged commit 01957bf into jackwener:main Apr 12, 2026
11 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.

2 participants