Skip to content

$getUserVar

$getUserVar will return the value of a given user variable.

Usage

$getUserVar[varname;userID?;id?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
userID?numberUser ID.false
id?string, number1. specific guild id
2. dm
false
table?stringVariable table.false

Example(s)

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

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