Skip to content

feat(messages): add edit command to update existing messages - #88

Merged
shahariaazam merged 1 commit into
mainfrom
feat/messages-edit-87
Jul 24, 2026
Merged

feat(messages): add edit command to update existing messages#88
shahariaazam merged 1 commit into
mainfrom
feat/messages-edit-87

Conversation

@vibexp-gh

Copy link
Copy Markdown
Collaborator

Summary

Adds a slackcli messages edit command to correct an already-sent message, closing the gap where the CLI could send and react but not update.

slackcli messages edit \
  --channel-id=C1234567890 \
  --timestamp=1234567890.123456 \
  --message="Corrected message"

Changes

  • SlackClient.updateMessage() wrapping Slack's chat.update (works with both standard and browser auth).
  • messages edit command with required --channel-id, --timestamp, --message, plus the standard --workspace selector. Message identification and output mirror messages react.
  • Tests: client-level chat.update call assertion + command-shape test for the required options.
  • README documented under Message Commands, with a note that only the authenticated user/app's own (non-ephemeral) messages can be edited.

Notes

  • Slack only allows updating messages posted by the authenticated user/app; ephemeral messages can't be updated with chat.update. Those constraints surface as normal Slack API errors.

Closes #87

Adds a `messages edit` command backed by a new SlackClient.updateMessage()
that calls Slack's chat.update. Mirrors the react command for message
identification (--channel-id + --timestamp) and works with both auth types.

Closes #87
@vibexp-gh
vibexp-gh marked this pull request as draft July 24, 2026 08:11
@vibexp-gh
vibexp-gh marked this pull request as ready for review July 24, 2026 08:12
@shahariaazam
shahariaazam merged commit 5d72040 into main Jul 24, 2026
6 checks passed
@shahariaazam
shahariaazam deleted the feat/messages-edit-87 branch July 24, 2026 08:27
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.

feat: add a command to edit messages

2 participants