Actions15
Edit Message
AI-generatedSummary
Edit a message's content in a Discord channel.
Inputs
- channelId (required) — The Discord channel ID (enable Developer Mode in Discord settings > Advanced)
- messageId (required) — The ID of the message to edit
- newContent (required) — The new text content for the message
Output shape
object
Returns the edited message metadata on success. Throws NodeOperationError if the channel or message is not found.
Examples
Example 1: Update an existing announcement message
Provide the channel ID, the message ID of the target message, and the new content string. The node fetches the message and edits it in place, returning the updated content and edit timestamp.