Skip to content

$getGlobalUserVar

$getGlobalUserVar will return the value of a given global user variable.

Usage

$getGlobalUserVar[varname;userID?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
userID?numberUser ID.false
table?stringVariable table.false

Example(s)

This will return the value of a variable called “Example”:

1
client.command({
2
name: "getGlobalUserVar",
3
code: `
4
$getGlobalUserVar[Example;$authorID;main]
5
`
6
});