Skip to content

$getMessageVar

$getMessageVar will return the value of a given message variable.

Usage

$getMessageVar[varname;messageId?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
messageID?numberMessage IDfalse
table?stringVariable table.false

Example(s)

This will return the value of a variable called “Example”:

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