Events / Communication Communication related events . Fired when a player in your vicinity completes an achievement . < Added in Patch 1 . 12 > Fired when the client receives a message from SendAddonMessage Fired when the client receives an AFK auto - response < Added in Patch 1 . 12 > Fired when a message is received through the battleground group channel < Added in Patch 1 . 12 > Fired when a message is received from the leader of the battleground group Fired for alliance specific events in the battleground such as assaulting a graveyard . Fired for horde specific events in the battleground such as assaulting a graveyard . Fired for non faction specific events in the battlegrounds such as the battle start announcement . Fired when the Bnet Real ID Broadcast Message is changed or from API BNSetCustomMessage Fired when the client receives a channel message . Fired when someone joins a chat channel you are in Fired when a player leaves a channel that you are currently inside . Fired when ListChannels ( ) or ListChannelByName ( ) is called , and the message is displayed in the chat frame . Fired when you enter or leave a chat channel ( or a channel was recently throttled ) Fired when something changes in the channel like moderation enabled , user is kicked , announcements changed and so on . CHAT _ * _ NOTICE in GlobalStrings . lua has a full list of available types . Fired when the client receives a Do - Not - Disturb auto - response Fired on sending or receiving a custom emote ( one used by / e , / emote or a send chat message command with the emote flag ) Fired when a message is sent or received in the Guild channel . Fired when a guild member completes an achievement . Fired when you whisper a player that is ignoring you When testing this event the character name is sent twice as arg1 and arg2 , Blizzard appears to use arg2 and ignores arg1 . Fired for emotes from a monster , such as ' Murloc Forager attempts to run away in fear ! ' Fired when a NPC says something . Fired when a NPC whispers you something Fired when a NPC yells , example would be the yells during an Alterac Valley from the Herald or a raid boss . Fired when a message is sent or received in the Guild Officer channel . Fired when a message is sent or received in the Party channel . Fired when a message is sent or received by the party leader . Fired when a message is sent or received in the Raid . Fired when a message is sent or received from the raid leader . Fired when a warning message is sent or received from the raid leader . Fired when a message is sent or received in the Say channel . Example : Place " this : RegisterEvent ( " CHAT _ MSG _ SAY " ) ; " in the < OnLoad > / < / OnLoad > section of your MyMod . xml file . Then , have an " if ( event = = " CHAT _ MSG _ SAY " ) then MyMod _ Say ( event , arg1 , arg2 , arg3 ) ; end " line , or something like it , in the < OnEvent > / < / OnEvent > section of your MyMod . xml file . Then , have a function like the following in your MyMod . lua file : This would store the previous message , player who said it , and language it was said in into some variables . Fired when a system chat message ( they are displayed in yellow ) is received . arg1 formats are found in Blizzard ' s GlobalStrings . lua . Some possibilities : " Note : " Be very careful with assuming when the event is actually sent . For example , " Quest accepted : Quest Title " is sent before the quest log updates , so at the time of the event the player ' s quest log does not yet contain the quest . Similarly , " Quest Title completed . " is sent before the quest is removed from the quest log , so at the time of the event the player ' s quest log still contains the quest . Fired when a target marker is set . This is used by the chat filter , if the player is watching target markers in chat output ( in the Filters right - click menu , under Other , look for Target Icons ) . arg1 is formatted from the global variable TARGET _ ICON _ SET , which by default in an English client is set to the string The other arguments are unused . Fired for emotes with an emote token . / dance , / healme , etc Fired when a whisper is received from another player . Fired when the player sends a whisper to another player Fired when a message is sent or received in the Yell channel . Fired when . . . No args . Fired when a player is added or removed from the ignore list . Event is called twice . Not certain why it is called twice . This event fires when a Unit ' s flags change ( eg : due to / afk , / dnd , etc . ) Fired when the client received a time played message . Fired when the interface generates a message . These are the yellow messages in the top middle of the window . " No fish are hooked . " is one example . Fired when the chat colour needs to be updated . Refer to the ChangeChatColor API call for details on the parameters . Fired on load when chat settings are available for a certain chat window . Fired on load when chat settings are available for chat windows . When fired prompts the LFG UI to update the list of LFG players . Signals LFG query results are available . See API LFGQuery . Fired when the client receives the result of a SendWho ( ) request from the server . use API SetWhoToUI to manipulate this functionality . This event is only triggered if the Who panel was open at the time the Who data was received ( this includes the case where the Blizzard UI opens it automatically because the return data was too big to display in the chat frame ) .