Skip to content

$fileExists

$fileExists will check if a given file exists.

Usage

$fileExists[path]

Parameters

FieldTypeDescriptionRequired
pathstringFile path.true

Example(s)

This will check if a file called index.js exists in your directory:

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