Functionalities
Other
$message[]
Returns arguments in the message/command, if you define args it will send the chosen message(s).

FUNCTION USAGE

  • $message[]
  • $message[last]
  • $message[argNumber]

Properties:

[] - Leave brackets empty to return everything in the command/message. last - Returns the last argument. Same as $lastArg. argNumber - The argument(word) to return from the command or message.

Example 1: Returns the platform the command author is using.

1
bot.Command({
2
name: "say",
3
code: `
4
Message - $message[]
5
`
6
})
Copied!

Example 2: Returns the prefix + command name used to execute the command.

If you type ?test2 hello the output will be ?test2 hello
1
bot.Command({
2
name: "say",
3
aliases: ["test1", "test2"]
4
code: `
5
$message[0] $message[]
6
`})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: