webhooks_modify
Update a Discord webhook's name, avatar, or target channel. Returns the modified webhook record without the token, with fenced untrusted name.
Instructions
Purpose: Update a webhook (rename, re-avatar, move to a different channel).
When to use:
Change the channel a webhook posts to (
channel_id) - only available on the bot-auth path.
Returns: Updated webhook record without a token. name remains raw creator-controlled data; untrusted_name provides a separately fenced copy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New display name | |
| avatar | No | base64-encoded image data URI for the avatar, or null to clear | |
| channel_id | No | Move the webhook to this channel | |
| webhook_id | Yes | Webhook to modify | |
| audit_reason | No | Reason recorded in audit log (X-Audit-Log-Reason header) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||