$let
Assigns data to a temporary variable that can be changed and retrieved later in the command. Similar to `$setVar` but variable data only saves per command execution instead of assigned permanently.

FUNCTION USAGE

  • $let[variable;value]

Properties:

variable - Define a variable with a name. The data value will be recovered using this name. value - Define the variable with a value.

Example: Simple example of how it can be used.

1
bot.Command({
2
name: "test",
3
code: `
4
Changed - $get[test]
5
$let[test;hello] //Changed
6
7
Assigned - $get[test]
8
$let[test;$serverCount] //Assigned
9
`
10
})
Copied!
Last modified 10mo ago
Copy link
Contents
Properties: