WoW API: RemoveChatWindowChannel
Jump to navigation
Jump to search
← WoW API < RemoveChatWindowChannel
Make a chat channel invisible (hidden) in a specific ChatFrame. RemoveChatWindowChannel(chatFrameIndex, "channel")
Arguments
- (chatFrameIndex, "channel")
- chatFrameIndex
- Number - Index of the chat frame window (starts at 1)
- channel
- String - The name of the channel you wish to remove (eg. "Trade")
Returns
- Nothing
Details
- As of 3.1.3, This function will not work on its own, due to the chat window object (named "ChatWindow1", etc...) will still store it in the channelList and zoneChannelList tables (see FrameXML\ChatFrame.lua line 2150, function ChatFrame_RemoveChannel(chatFrame, channel)). One would have to call the ChatFrame_RemoveChannel function to make it work:
ChatFrame_RemoveChannel(ChatWindow1, "Trade"); -- DEFAULT_CHAT_FRAME works well, too