WoW:API GetChatWindowMessages: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API GetChatWindowMessages to WoW:API GetChatWindowMessages without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''GetChatWindowMessages''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}
 


Get the chat types received by a chat window.
Get the chat types received by a chat window.
Line 20: Line 21:
  local DefaultMessages = { GetChatWindowMessages(DEFAULT_CHAT_FRAME:GetID()) };
  local DefaultMessages = { GetChatWindowMessages(DEFAULT_CHAT_FRAME:GetID()) };
<!-- end code -->
<!-- end code -->
----
__NOTOC__
{{Template:WoW API}}
[[Category:API Functions|GetChatWindowMessages]]
[[Category:API Chat Functions|GetChatWindowMessages]]

Latest revision as of 04:45, 15 August 2023

WoW API < GetChatWindowMessages


Get the chat types received by a chat window.

type1, type2, type3, ... = GetChatWindowMessages(frameId)

Parameters

Arguments

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

Returns

type1, type2, type3, ...
type1
String - The type code of the first chat type received by the window.
type2
String - The type code of the second chat type received by the window.
type3
String - The type code of the third chat type received by the window.

Example

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