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