Skip to content

$commandInfo

$commandInfo will return the given text of a property.

Usage

$commandInfo[name;option]

Parameters

FieldTypeDescriptionRequired
namestringCommand name or alias.true
optionstringProperty 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.
1
client.command({
2
name: "commandInfo",
3
aliases: ["ci", "cmdInfo"],
4
usage: "commandInfo [command]",
5
code: `
6
Usage: $commandInfo[ci;usage]
7
`
8
});