Skip to content
Moderation removeAttachments

$removeAttachments — Removes all attachments from a message, returns bool

Removes all attachments from a message, returns bool

Syntax

$removeAttachments[channelID;messageID]

Parameters

  • channelID (id, required) — The channel to pull message from
  • messageID (id, required) — The message to remove attachments from

Return Value

  • Boolean.

Usage

$removeAttachments[channelID;messageID] → result

Example

$sendMessage[$removeAttachments[30;1000]]

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.