API:GetChannelList

__NOTOC__
channels = { GetChannelList() } 
== Parameters ==
=== Arguments ===
=== Returns ===
::channels - a list of channel number followed by channel name for all user-created channels 
== Example code ==
for i,v in ipairs (GetChannelList()) do
 if v == "MyChannelName" then
 SendChatMessage("Some Text", "CHANNEL", 0, i) -- i should be number of channel because type CHANNEL
 break
 end
end
local channels = { GetChannelList() }
if #channels >= 2 then
 local channelNum = channels[1]
 local channelName = channels[2]
end
Category:Functions
== Related Functions ==
* SendChatMessage