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