$getVar

Gets the value of a global/global-user variable.

Syntax

$getVar[Variable name;(User ID)]

🧙‍♂️ For a global variable, a User ID doesn’t need to be provided. For a global-user variable, User ID must be provided.

Parameters

  • Variable name (Type: String || Flag: Required): The name of the variable to get the value from.
  • User ID (Type: Snowflake, String || Flag: Vacantable): The user to get the value for (if global-user).

Example

$nomention
You have $getVar[Money;$mentioned[1;yes]] coins!

example

For more info, see the Variables Guide.