Skip to content
Webhooks webhookDeleteMessage

$webhookDeleteMessage

Deletes a message sent by a webhook. Bot Creator function, not in the official BDFD wiki.

Syntax

$webhookDeleteMessage[webhookURL;messageID;(threadID)]

Parameters

Parameter Description
webhookURL Required. The full Discord webhook URL (https://discord.com/api/webhooks/ID/TOKEN).
messageID Required. The ID of the message.
threadID Optional. The thread of the message, if it was sent in one.

Return Value

  • Nothing.

Example

$webhookDeleteMessage[$getVar[hook];$messageID]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.