CHAT_MSG_ADDON

From Wowpedia
Jump to: navigation, search

Fired when the client receives a message from C_ChatInfo.SendAddonMessage()

CHAT_MSG_ADDON: prefix, text, channel, sender, target, zoneChannelID, localID, name, instanceID

Payload

1. prefix 
string - The registered prefix as used in C_ChatInfo.RegisterAddonMessagePrefix()
2. text 
string - The message body
3. channel 
string - The addon channel's chat type, e.g. "PARTY"
4. sender 
string - Player who initiated the message
5. target 
string - The channel index and name, e.g. "4. test"; or the target player receiving the message
6. zoneChannelID 
number - Seems to be always 0
7. localID 
number - The channel index or 0 if not applicable.
8. name 
string - The channel name or an empty string if not applicable.
9. instanceID 
number - Seems to be always 0

Chat Types

chatType Retail Classic Description
"PARTY"
✔️
✔️
Addon message to party members
"RAID"
✔️
✔️
Addon message to raid members
"INSTANCE_CHAT"
✔️
✔️
Addon message to grouped players in instanced content such as dungeons, raids and battlegrounds
"GUILD"
✔️
✔️
Addon message to guild members
"OFFICER"
✔️
✔️
Addon message to guild officers
"WHISPER"
✔️
✔️
Addon message to a player on the same or connected realm (silently fails to incompatible realms). Use player name as target argument
"CHANNEL"
✔️
Addon message to a custom chat channel. Use channel number as target argument. Disabled on Classic to prevent players communicating over custom chat channels
"SAY"[1]
✔️
Addon message to players within /say range. Subject to heavy throttling and certain specific characters are disallowed[2]
"YELL"[1]
✔️
Addon message to players within /yell range. Subject to heavy throttling and certain specific characters are disallowed[2]

Patch changes

External links

References