Skip to content

$setMessageVar

$setMessageVar will change the value of a given message variable.

Usage

$setMessageVar[varname;value;messageID?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
valuestringNew Variable value.true
messageID?numberMessage ID.false
table?stringVariable table.false

Example(s)

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

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