Is there a way to programmatically cycle through the chat tabs in a chatframe? For example, in my ChatFrame1, I have General, Log, Guild, but what if you don't know how many tabs a user has, or what the tab names are?
I've gone through the FrameXML to look for clues, but so far haven't found anything.
EDIT: I don't need the tab names per se. Rather, I am trying to clear all the text in each tab of each chatframe.
Lua Code:
for i = 1, NUM_CHAT_WINDOWS do
local window = _G["ChatFrame"..i]
window:Clear() -- this clears the first window in ChatFrame1, ChatFrame2, etc
-- great, now get the next tab, but how?
end