API:ChatFrame AddChannel

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

AddChatWindowChannel(chatFrame:GetID, channelName);