Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API ChatFrame AddChannel
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{framexmlfunc|FrameXML/ChatFrame.lua}} ChatFrame_AddChannel(chatFrame, 'channelName') Order a chat frame to display a previously-joined chat channel.Β == Parameters == === Arguments === :(chatFrame, 'channelName') :;chatFrame :: Object - The chat frame to display the channel in. Some ex :;channelName :: String - The name of the chatchannel to activate. === Returns === :nil == Example == ChatFrame_AddChannel(DEFAULT_CHAT_FRAME, "test"); ChatFrame_AddChannel(SELECTED_CHAT_FRAME, "ErrorInfo"); ChatFrame_AddChannel(ChatFrame1, "AnotherChannel"); ====chatFrame==== <code>DEFAULT_CHAT_FRAME</code> - Adds the channel to the default chat window.<br /> <code>SELECTED_CHAT_FRAME</code> - Adds the channel in the chat window with focus ( the front window ).<br /> <code>ChatFrameX</code> - Where X is an int from 1 to 10. Seems to add the channel to any chat window, where X=1 is the left-most window.<br />
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Framexml
(
edit
)
Template:Framexmlfunc
(
edit
)
Template:Icon-information
(
edit
)
Template:Wowapi
(
edit
)
Template:Wowtoolsfilelink
(
edit
)