Skip to content

$messageAttachment

$messageAttachment will return a message attachment depending on the given index.

Usage

$messageAttachment[index?]

Parameters

FieldTypeDescriptionRequired
index?numberThe index of which message attachment will be returned.false

Example(s)

This will return your given attachment:

1
client.command({
2
name: "messageAttachment",
3
code: `
4
You had the following attachment in your message: $messageAttachment
5
`
6
});