$createFile
$createFile will create a file attachment.
Usage
$createFile[attachment;name]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| attachment | string | Content of the file. | true |
| name | string | The name of the attachment. | true |
Example(s)
This will create a text file called example.txt with the text “This is an example!”:
1client.command({2 name: "createFile",3 code: `4 $createFile[This is an example!;example.txt]5 `6});