Skip to content

$renameFile

$renameFile will rename a file of your bot’s directory.

Usage

$renameFile[oldFile;newFile]

Parameters

FieldTypeDescriptionRequired
oldFilestringOld file name.true
newFilestringNew file name.true

Example(s)

This will change your index.js to a index.txt file:

1
client.command({
2
name: "renameFile",
3
code: `
4
$renameFile[./index.js;./index.txt]
5
`
6
});