Skip to content

$getChannelVar

$getChannelVar will return the value of a given channel variable.

Usage

$getChannelVar[varname;channelID?;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
channelID?numberChannel ID.false
table?stringVariable table.false

Example(s)

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

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