The URL of the attachment.
Message Attachment
typeThe Message Attachment entity and its Skript syntaxes.
Properties
4The file name of the attachment.
The file extension of the attachment, or null if it has none.
The duration of the attachment if it is an audio (voice) file, or null otherwise.
Effects
1Saves 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).
Conditions
4Whether the attachment is an audio file (a voice message). If it is, the 'attachment duration' expression can be used on it.
Whether the attachment is an image.
Whether the attachment is a video.
Whether the attachment is marked as a spoiler.
Returned by
1Syntaxes elsewhere in DiSky that return Message Attachment.
Documentation
1Hand-written guides that cover Message Attachment.