Functionalities
Other
$commandName
Returns the command name.

FUNCTION USAGE

  • $commandName
  • $commandName[]
  • $commandName[name]

Properties:

[] - Returns the current command name. Same as no brackets. name - Defining a command by its name, function returns the name of that command.

Example 1: Returns the current command name.

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

Example 2: Returns the command name of given command.

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