Download Attachment (Effect) — DiSky
Addon: DiSky · Category: Effect · Since: 5.0.0-b1
Syntax
download [the] [attachment] %types.attachment% (in|to) [the] [(folder|file|path)] %text%Description
Saves a message attachment to a file on the server, waiting until the download is complete. A path ending with '/' or '', or naming an existing folder, is a folder: the file is saved in it under the attachment's file name. Any other path is the file itself. Missing folders are created, and an existing file is overwritten. A relative path starts from the server's root folder (where the server jar is).
Examples
download {_attachment} to folder "plugins/MyScript/uploads/"
loop discord attachments of event-message:
download loop-value to file "plugins/MyScript/last-%file name of loop-value%"