WoW API: GetChatWindowMessages

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API GetChatWindowMessages to API GetChatWindowMessages without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < GetChatWindowMessages


Get the chat types received by a chat window.

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

ParametersEdit

ArgumentsEdit

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

ReturnsEdit

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.

ExampleEdit

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