Discord icon

Discord

Interact with Discord API - users, messages, webhooks, guilds, interactions, and more

Actions193

Webhook → Edit Message

AI-generated

Summary

Edits an existing Discord webhook message, optionally replacing its content, embeds, components, mention rules, or attachments. Provide the webhook ID and token and the message ID; add a thread ID when the message belongs to a thread.

Inputs

  • Authentication — Select Bot Token (default) or OAuth2 (User Token).
  • Webhook ID (required) — Discord webhook snowflake ID.
  • Webhook Token (required) — Token for the webhook.
  • Message ID (required) — Snowflake ID of the webhook message to edit.
  • Thread ID — Thread snowflake ID when editing a message in a webhook channel thread.
  • Content — Message text, up to 2,000 characters.
  • Embeds — Guided embed builder supporting up to 10 embeds, including titles, descriptions, fields, media, and author and footer details.
  • Buttons, selects, and components — Add button rows, string or entity select menus, text displays, separators, media galleries, and V2 file components; raw Components JSON is also available for other component layouts.
  • Attachments — Upload files from named binary properties on each input item, with optional filename, description, and content type overrides.
  • Allowed Mentions — Control which user, role, or everyone mentions in the message can ping recipients.
  • Request Options — Configure request batching, SSL certificate handling, proxy, and timeout.

Output shape

A single Discord API response record for the edited message per input item.

Optional message fields and components depend on the request and Discord response. The source pack exposes the edit presend handler but omits its body, so the precise returned shape and how empty optional fields are treated cannot be confirmed from the provided source.

Examples

Example 1: Edit the text of a webhook message

Set Webhook ID, Webhook Token, and Message ID, then provide the replacement Content.

Example 2: Add interactive components

Provide the target webhook and message IDs, then configure Buttons or select menus, or supply a raw Components JSON array.

Links

Discussion