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