WoW:API RemoveChatWindowChannel: Difference between revisions
Jump to navigation
Jump to search
(Creation+notes) |
m (Move page script moved page API RemoveChatWindowChannel to API RemoveChatWindowChannel without leaving a redirect) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Blocks further messages from a specified chat channel from appearing in a specific chat frame. | |||
RemoveChatWindowChannel(windowId, "channelName"); | |||
RemoveChatWindowChannel( | |||
== Arguments == | == Arguments == | ||
; windowId : Number - index of the chat window/frame (ascending from 1) to remove the channel from. | |||
; channelName : String - name of the chat channel to remove from the frame. | |||
== Details == | == Details == | ||
* Chat output architecture has changed since release; calling this function alone is no longer sufficient to block a channel from a particular frame in the default UI. Use {{api|ChatFrame_RemoveChannel}}(chatFrame, "channelName") instead, like so: | |||
ChatFrame_RemoveChannel(ChatWindow1, "Trade"); -- DEFAULT_CHAT_FRAME works well, too | |||
== See also == | |||
* {{api|AddChatWindowChannel}} |
Latest revision as of 04:47, 15 August 2023
← WoW API < RemoveChatWindowChannel
Blocks further messages from a specified chat channel from appearing in a specific chat frame.
RemoveChatWindowChannel(windowId, "channelName");
Arguments[edit]
- windowId
- Number - index of the chat window/frame (ascending from 1) to remove the channel from.
- channelName
- String - name of the chat channel to remove from the frame.
Details[edit]
- Chat output architecture has changed since release; calling this function alone is no longer sufficient to block a channel from a particular frame in the default UI. Use ChatFrame_RemoveChannel(chatFrame, "channelName") instead, like so:
ChatFrame_RemoveChannel(ChatWindow1, "Trade"); -- DEFAULT_CHAT_FRAME works well, too