$setVar

Sets a variable's value globally, or for a user globally.

Syntax

$setVar[variableName;newValue;(userID)]

Parameters

  • variableName (Type: String || Flag: Required): The variable to update.
  • newValue (Type: String || Flag: Emptiable): The newly assigned variable value.
  • userID (Type: Snowflake || Flag: Optional): The user to globally assign the new value to. Sets the variable type as global-user, if 'userID' is present.

📝 Global variables has a max character limit of 499 (for premium users, it's 4999).

See more in the Variables guide...