API:AddChatWindowChannel

Usage: unknown Used in Chatframe.lua

channel = AddChatWindowChannel(ChatFrameID, channelName)

Arguments

 * ChatFrameID
 * ID of chatframe
 * channelName
 * name of private channel

Returns

 * channel
 * ID of channel

Example code
/run local channel = AddChatWindowChannel(ChatFrame1:GetID, "channel")

Source code
function ChatFrame_AddChannel(chatFrame, channelName) local channel = AddChatWindowChannel(chatFrame:GetID, channelName); if ( channel > 0 ) then chatFrame.channelList[channel] = channelName; end end