$commandsList
$commandsList returns a list of commands, optionally formatted and separated.
Usage
$commandsList[format?;sep?;excludeFunctions?]Parameters
| Field | Type | Description | Required |
|---|---|---|---|
| format? | string | Format for each command. Supports {name}, {description} and other parsers. Default: {name} | false |
| sep? | string | Separator between commands in the list. Default: , | false |
| excludeFunctions? | boolean | Whether to exclude functions (commands starting with $). Default: true | false |
Example(s)
This will list all commands by name, separated by a comma:
1client.command({2 name: "allCommands",3 code: `4 $commandsList5 `6});This will list commands with their name and description, separated by a semicolon:
1client.command({2 name: "commandsWithDesc",3 code: `4 $commandsList[{name} - {description}; ;false]5 `6});