Edit webhook
discord_
Write
- Toolset
- Webhooks
webhooks - Discord permission
- Manage Webhooks
- Context cost
- 220 tokens, estimated880 bytes of definition, divided by 4
Update a webhook's name, avatar, or the channel it posts to. Only provided fields change. Requires the Manage Webhooks permission. Returns a confirmation.
Risk and annotations
Read-onlyreadOnlyHint | no | Can modify your server. |
|---|---|---|
DestructivedestructiveHint | no | Declared non-destructive. |
IdempotentidempotentHint | yes | Repeating the call with the same arguments has no additional effect. |
Open worldopenWorldHint | yes | Interacts with an external system: Discord. |
Annotations are hints the server declares. Clients use them to decide when to ask you before a call.
Parameters
| Parameter | Type | Rules | Description |
|---|---|---|---|
| webhook_ | string | pattern ^\d{17,20}$ | ID (snowflake) of the webhook to edit. |
| nameoptional | string | none | New display name for the webhook (max 80 characters). |
| avataroptional | string | format uripattern ^https?:// | New avatar image URL for the webhook. |
| channel_ | string | pattern ^\d{17,20}$ | ID (snowflake) of a channel to move the webhook to. |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Also in Webhooks
-
Create webhook, Write
discord_create_ webhook -
Send webhook message, Write
discord_send_ webhook_ message -
Delete webhook, Destructive
discord_delete_ webhook -
List webhooks, Read-only
discord_list_ webhooks -
Edit webhook message, Write
discord_edit_ webhook_ message -
Delete webhook message, Destructive
discord_delete_ webhook_ message -
Fetch webhook message, Read-only
discord_fetch_ webhook_ message
Raw definition (880 bytes)
{
"name": "discord_edit_webhook",
"description": "Update a webhook's name, avatar, or the channel it posts to. Only provided fields change. Requires the Manage Webhooks permission. Returns a confirmation.",
"inputSchema": {
"type": "object",
"properties": {
"webhook_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID (snowflake) of the webhook to edit."
},
"name": {
"description": "New display name for the webhook (max 80 characters).",
"type": "string"
},
"avatar": {
"description": "New avatar image URL for the webhook.",
"type": "string",
"format": "uri",
"pattern": "^https?://"
},
"channel_id": {
"description": "ID (snowflake) of a channel to move the webhook to.",
"type": "string",
"pattern": "^\\d{17,20}$"
}
},
"required": [
"webhook_id"
],
"additionalProperties": false
},
"annotations": {
"title": "Edit webhook",
"readOnlyHint": false,
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": true
}
}