Fandom

WoWWiki

API GetChatWindowChannels

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetChatWindowChannels

Get the channels received by a chat window.

name1, zone1, name2, zone2, ... = GetChatWindowChannels(frameId)

Parameters Edit

Arguments Edit

(frameId)
frameId 
Number - The frame number of the chat frame to be queried (starts at 1).

Returns Edit

name1, zone1, name2, zone2, ...
name1 
String - The name to display for the first channel.
zone1 
Number - The 'zone channel' number for the first channel. Has a value of 0 for non-zone channels, and a non-zero value for zone channels (such as Trade, General)
name2 
String - The name to display for the second channel.
zone2 
Number - The 'zone channel' number for the second channel. Has a value of 0 for non-zone channels, and a non-zero value for zone channels (such as Trade, General)

Example Edit

This function is best called within a table constructor:
local DefaultChannels = { GetChatWindowChannels(DEFAULT_CHAT_FRAME:GetID()) };

Also on Fandom

Random Wiki