$cmd
A `Compact Function` with `7` options to choose from.

FUNCTION USAGE

    $cmd
    $cmd[commandName;option]

Properties:

commandName - Define the command with a command name. option - Define the property by its name.
No brackets will return the command name of the command being used.
undefined is returned when the option data cannot be fetched.

Options:

    1.
    aliases
    2.
    description
    3.
    error
    4.
    exists
    5.
    name
    6.
    status
    7.
    usage
aliases
description
error
exists
name
status
usage

Returns a command's aliases.

Returns a command's description.

Returns the error message for a command.

Returns true if the defined command exists in the bot. Otherwise, bot returns false.

Returns a command's name

Returns the status of a command.

Returns a command's usage.

Example 1: Output will be "Just a test command".

1
bot.Command({
2
name: "test",
3
aliases: ["t"],
4
description: "Just a test command",
5
code: `
6
$cmd[test;description]
7
`
8
})
Copied!

Example 2: Output will be "Just a test command".

1
bot.Command({
2
name: "test",
3
aliases: ["t"],
4
description: "Just a test command",
5
code: `
6
$cmd[;description]
7
`
8
})
Copied!

Example 3: Output will be "test".

1
bot.Command({
2
name: "test",
3
aliases: ["t"],
4
description: "Just a test command",
5
code: `
6
$cmd
7
`
8
})
Copied!
Last modified 4mo ago
Copy link