$allApplicationCommands
$allApplicationCommands
will return all slash command names registered in the bot’s application.
Usage
$allApplicationCommands[sep?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
sep? | string | Separator used between command names. Default is , . | false |
Example(s)
This will return all slash commands separated by a comma and a space:
1client.command({2 name: "allApplicationCommands",3 code: `4 $allApplicationCommands[, ]5 `6});