Moderation
deleteMessages
$deleteMessages
$deleteMessages is another name of $clearMessages[], added for scripts written for the BDFD announcement of 01/12/2026. It takes the same arguments and does the same thing; read the page of $clearMessages for the details.
Syntax
$deleteMessages[channelID;amount;(deletePinned);(deleteBots)]
Example
$deleteMessages[channelID;amount;deletePinned;deleteBots]
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.