$messageAttachment
$messageAttachment
will return a message attachment depending on the given index.
Usage
$messageAttachment[index?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
index? | number | The index of which message attachment will be returned. | false |
Example(s)
This will return your given attachment:
1client.command({2 name: "messageAttachment",3 code: `4 You had the following attachment in your message: $messageAttachment5 `6});