docsFunctionsVariablesZgetChannelVar

ZgetChannelVar

Returns the value of a channel-scoped variable, defaulting to the current channel if not specified.

Syntax

ZgetChannelVar{name;channelID?}

Arguments

NameTypeRequiredDefault
namestringYes-
channelIDsnowflakeNo-

Example

ZgetChannelVar{topic}