Functionalities
Other
Powered By GitBook
$commandList
Returns a list of commands in your bot.

FUNCTION USAGE

    $commandList
    $commandList[]
    $commandList[separator]

Properties:

[]- Leave brackets empty to return the list of commands separated by a comma. Same as no brackets.separator - Each command will be separated by the content in the brackets.

Example 1: Returns all commands separated by a comma.

1
bot.Command({
2
name: "test",
3
code: `
4
5
$commandList
6
`
7
})
Copied!

Example 2: Returns all commands separated by a pipe.

1
bot.Command({
2
name: "test",
3
code: `
4
5
$commandList[ | ]
6
`
7
})
Copied!
Last modified 1mo ago
Copy link
Contents
Properties: