$createFile
Creates a customizable file for you in the current or defined channel.

FUNCTION USAGE

  • $createFile[content;name;extension;channelID]

Properties:

content - Content the created file will contain. name - Define the desired name of the created file. extension - The file extension (txt or js etc..). channelID - The channel ID of where the bot will send the created file.
Will not work with $channelSendMessage or $useChannel because it's a Buffer

Example 1: Create file and send to current channel.

1
bot.Command({
2
name: "create",
3
code: `
4
$createFile[code or stuff here;poggers;txt;$channelID]
5
`
6
})
Copied!

Example 2: Define a specific channel to send the file to.

1
bot.Command({
2
name: "create",
3
code: `
4
$createFile[code or stuff here;poggers;txt;6546867923476783453]
5
`
6
})
Copied!
Last modified 5mo ago
Copy link
Contents
Properties: