$setUserVar
$setUserVar
will change the value of a given user variable.
Usage
$setUserVar[varname;value;userID?;id?;table?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
varname | string | Variable name. | true |
value | string | New Variable value. | true |
userID? | number | User ID. | false |
id? | string | 1. specific guild ID 2. dm | false |
table? | string | Variable table. | false |
Example(s)
This will change the value of “Example” to “This is a value”:
1client.command({2 name: "setUserVar",3 code: `4 $setUserVar[Example;This is a value;$authorID;$guildID;main]5 `6});