m
Move page script moved page API SendAddonMessage to WoW:API SendAddonMessage without leaving a redirect
m (Move page script moved page API SendAddonMessage to WoW:API SendAddonMessage without leaving a redirect) |
|||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Sends a message to the hidden addon channel. Introduced in [[Patch 1.12]]. | Sends a message to the hidden addon channel. Introduced in [[Patch 1.12]]. Replaced in 8.0 by C_ChatInfo.SendAddonMessage. | ||
SendAddonMessage("prefix", "text", "type", "target") | SendAddonMessage("prefix", "text", "type", "target"); | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:;prefix : String - Message prefix, can be used as your addon identifier. (16 Character Limit) | :;prefix | ||
:;text : String - Text to send. | :: String - Message prefix, can be used as your addon identifier. (16 Character Limit) | ||
:;type : String - AddOn channel to send to. Valid types are "PARTY", "RAID", "GUILD", "BATTLEGROUND". As of 2.1, "WHISPER" was also added. | :;text | ||
:;target : String - Used only for "WHISPER" communication - the player to whisper to. | :: String - Text to send. | ||
:;type | |||
:: String - AddOn channel to send to. Valid types are "PARTY", "RAID", "GUILD", "OFFICER", "BATTLEGROUND". As of 2.1, "WHISPER" was also added. | |||
:;target | |||
:: String - Used only for "WHISPER" communication - the player to whisper to. | |||
== Example == | == Example == | ||
| Line 16: | Line 20: | ||
* Calling this function results in the event [[Events/C#CHAT_MSG_ADDON|CHAT_MSG_ADDON]] being invoked on: | * Calling this function results in the event [[Events/C#CHAT_MSG_ADDON|CHAT_MSG_ADDON]] being invoked on: | ||
** <target>'s client if <type> is "WHISPER" or | ** <target>'s client if <type> is "WHISPER" or | ||
** all clients in the <type> chat channel, otherwise | ** all clients in the <type> chat channel, otherwise | ||
* Messages sent to "RAID" while in a party will get delivered to "PARTY" | * Messages sent to "RAID" while in a party will get delivered to "PARTY" | ||
* To send to your battleground group, "BATTLEGROUND" must be used | * To send to your battleground group, "BATTLEGROUND" must be used | ||