RefreshChatChannels
Sends the channel list to a player’s chat again - for a rule of the mode that changed.
A player’s chat is told its channels when they join and when a channel, their admin flag or their party changes. A
channel whose visible or can_send is a function is asked at those moments, so when the answer changes at another
one - the player joined a guild, was muted - call this and the chat looks again. Without a player it goes to everyone.
Syntax
Section titled “Syntax”RefreshChatChannels([pid])| Parameter | Type | |
|---|---|---|
pid |
number | nil | the player; nil for everyone (optional) |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”function mute(pid) muted[pid] = true RefreshChatChannels(pid) -- the channels whose can_send asks about muted[pid] close for themendSee also
Section titled “See also”RegisterChatChannel · the Chat and commands group of the index
