Skip to content

$createFile

$createFile will create a file attachment.

Usage

$createFile[attachment;name]

Parameters

FieldTypeDescriptionRequired
attachmentstringContent of the file.true
namestringThe name of the attachment.true

Example(s)

This will create a text file called example.txt with the text “This is an example!“:

1
client.command({
2
name: "createFile",
3
code: `
4
$createFile[This is an example!;example.txt]
5
`
6
});