Functionalities
Other
$commandUsage
Returns the command usage of a command if one is defined. If no usage is defined in the command, bot will return `undefined`.

FUNCTION USAGE

  • $commandUsage
  • $commandUsage[]
  • $commandUsage[commandName]

Properties:

[] - Returns the usage of the current command. commandName - Returns the usage of the specific command.

Example 1: Returns the usage of the current command.... your usages will be different than these examples obviously and for every command.

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

Example 2: Returns the usage of the specific command. Bot will return the usage for the command help and not for this command.

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