Skip to content

$setUserVar

$setUserVar will change the value of a given user variable.

Usage

$setUserVar[varname;value;userID?;id?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
valuestringNew Variable value.true
userID?numberUser ID.false
id?string1. specific guild id
2. dm
false
table?stringVariable table.false

Example(s)

This will change the value of “Example” to “This is a value”:

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