$getMessageVar
Returns the value of the provided channel variable in the current channel. You can provide a message ID in the 2nd field to get the variable value of a specific message.

FUNCTION USAGE

  • $getMessageVar[varName]
  • $getMessageVar[varName;messageID]

Properties:

varName - The variable being called in the command. messageID - The message ID attached to the variable.

Example 1: Getting the message variable value of the command message.

1
bot.Command({
2
name: "check",
3
code:`
4
$getMessageVar[test]
5
`})
Copied!

Example 2: Getting a specific message's variable value.

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