$getChannelVar
Returns the value of the provided channel variable in the current channel. You can provide a channel ID in the 2nd field to get the variable value of the specific channel.

FUNCTION USAGE

  • $getChannelVar[varName]
  • $getChannelVar[varName;channelID]

Properties:

varName - The variable being called in the command channelID - The channel ID attached to the variable(You can omit this field to get the current channel variable value)

Example 1: Getting the current channel variable value

1
bot.Command({
2
name: "check",
3
code:`
4
__Total messages sent in this channel__
5
$numberSeparator[$getChannelVar[channelMsgs];,]
6
`})
Copied!

Example 2: Getting another channel's variable value

1
bot.Command({
2
name: "check",
3
code:`
4
__Total messages sent in <#$findChannel[$message[]]>__
5
$numberSeparator[$getChannelVar[channelMsgs;$findChannel[$message[]]];,]
6
`})
Copied!
Last modified 6mo ago
Copy link
Contents
Properties: