Functionalities
Other
$commandAliases
Returns the aliases of the current or specific command.

FUNCTION USAGE

  • $commandAliases
  • $commandAliases[]
  • $commandAliases[commandName]

Properties:

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

Example 1: Returns the aliases of the current command.

1
bot.Command({
2
name: "test",
3
aliases: ["test2", "test3"],
4
code: `
5
$commandAliases
6
`
7
}) // Returns `test2, test3`
Copied!

Example 2: Returns the aliases of the specific command.

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