Skip to content
Entity Info messageAttachment

$messageAttachment — Retrieves an attachment from this message

Retrieves an attachment from this message

Syntax

$messageAttachment[channelID;messageID;index]

Parameters

  • channelID (id, required) — The channel to pull message from
  • messageID (id, required) — The message to get its attachments
  • index (number, required) — The index of the attachment

Return Value

  • URL.

Usage

$messageAttachment[channelID;messageID;index] → result

Example

$sendMessage[$messageAttachment[30;1000;1]]

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.