$commandInfo
$commandInfo
will return the given text of a property.
Usage
$commandInfo[name;option]
Parameters
Field | Type | Description | Required |
---|---|---|---|
name | string | Command name or alias. | true |
option | string | Property to retrieve. | true |
Example(s)
This will return the usage (defined by added properties) of the command:
- You can add anything you’d like, for example “usage” as below.
- You can use aliases or the command name to return it’s information.
1client.command({2 name: "commandInfo",3 aliases: ["ci", "cmdInfo"],4 usage: "commandInfo [command]",5 code: `6 Usage: $commandInfo[ci;usage]7 `8});