Delete webhook message
discord_
Destructive
- Toolset
- Webhooks
webhooks - Context cost
- 217 tokens, estimated866 bytes of definition, divided by 4
Permanently delete a message that was sent through a webhook, using the webhook's ID and token. IRREVERSIBLE. No bot permission is needed: the token authorizes the call. To delete the webhook itself, use discord_.
Risk and annotations
Read-onlyreadOnlyHint | no | Can modify your server. |
|---|---|---|
DestructivedestructiveHint | yes | May perform destructive updates, so clients can ask before running it. |
IdempotentidempotentHint | no | Repeating the call can have an 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 that sent the message. |
| webhook_ | string | none | Secret token of the webhook. |
| message_ | string | pattern ^\d{17,20}$ | ID of the webhook message to delete. |
Output
This tool declares no output schema. Its description says what it returns; this page shows no example rather than invent one.
Related tools
Named in its description
Also in Webhooks
-
Create webhook, Write
discord_create_ webhook -
Send webhook message, Write
discord_send_ webhook_ message -
Edit webhook, Write
discord_edit_ webhook -
List webhooks, Read-only
discord_list_ webhooks -
Edit webhook message, Write
discord_edit_ webhook_ message -
Fetch webhook message, Read-only
discord_fetch_ webhook_ message
Raw definition (866 bytes)
{
"name": "discord_delete_webhook_message",
"description": "Permanently delete a message that was sent through a webhook, using the webhook's ID and token. IRREVERSIBLE. No bot permission is needed: the token authorizes the call. To delete the webhook itself, use discord_delete_webhook.",
"inputSchema": {
"type": "object",
"properties": {
"webhook_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID (snowflake) of the webhook that sent the message."
},
"webhook_token": {
"type": "string",
"description": "Secret token of the webhook."
},
"message_id": {
"type": "string",
"pattern": "^\\d{17,20}$",
"description": "ID of the webhook message to delete."
}
},
"required": [
"webhook_id",
"webhook_token",
"message_id"
],
"additionalProperties": false
},
"annotations": {
"title": "Delete webhook message",
"readOnlyHint": false,
"destructiveHint": true,
"idempotentHint": false,
"openWorldHint": true
}
}