View Single Post
12-13-12, 10:52 PM   #5
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
For message types:
  • ChatFrame_AddMessageGroup(ChatFrame1, "GUILD")
  • ChatFrame_RemoveMessageGroup(ChatFrame1, "RAID")

For individual numbered channels (eg. trade, general):
  • ChatFrame_AddChannel(ChatFrame1, "Trade")
  • ChatFrame_RemoveChannel(ChatFrame1, "General")

Note that for both, the first argument must be a reference to the chat frame you want to affect, not a string containing its name.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote