DiSky DiSky v5.0.0-b1

Message Attachment

type

The Message Attachment entity and its Skript syntaxes.

9 / 9

Properties

4
propertyTextsince 5.0.0-a1
[the] attachment url of %attachment%
%attachment%'s attachment url

The URL of the attachment.

mentioned inFile uploads
Helpful?
propertyTextsince 5.0.0-a1
[the] file name of %attachment%
%attachment%'s file name

The file name of the attachment.

mentioned inFile uploads
Helpful?
propertyTextsince 5.0.0-a1
[the] file extension of %attachment%
%attachment%'s file extension

The file extension of the attachment, or null if it has none.

mentioned inFile uploads
Helpful?
propertyTimespansince 5.0.0-a1
[the] attachment duration of %attachment%
%attachment%'s attachment duration

The duration of the attachment if it is an audio (voice) file, or null otherwise.

mentioned inFile uploads
Helpful?

Effects

1
effectsince 5.0.0-b1
download [the] [attachment] %attachment% (in|to) [the] [(folder|file|path)] %string%

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).

Helpful?

Conditions

4
conditionsince 5.0.0-a1
%attachments% (is|are) [an] audio [attachment]

Whether the attachment is an audio file (a voice message). If it is, the 'attachment duration' expression can be used on it.

mentioned inFile uploads
Helpful?
conditionsince 5.0.0-a1
%attachments% (is|are) [an] image [attachment]

Whether the attachment is an image.

mentioned inFile uploads
Helpful?
conditionsince 5.0.0-a1
%attachments% (is|are) [a] video [attachment]

Whether the attachment is a video.

mentioned inFile uploads
Helpful?
conditionsince 5.0.0-a1
%attachments% (is|are) [a] spoiler [attachment]

Whether the attachment is marked as a spoiler.

mentioned inFile uploads
Helpful?

Returned by

1

Syntaxes elsewhere in DiSky that return Message Attachment.

Documentation

1

Hand-written guides that cover Message Attachment.

An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.