API SendAddonMessage

Sends a message to the hidden addon channel. Introduced in Patch 1.12. SendAddonMessage("prefix", "text", "type", "target")

Arguments

 * prefix : String - Message prefix, can be used as your addon identifier; at most 15 characters.
 * text : String - Text to send, at most 250 characters.
 * type : String - AddOn channel to send to. Valid types are "PARTY", "RAID", "GUILD", "BATTLEGROUND". As of 2.1, "WHISPER" was also added.
 * target : String - Used only for "WHISPER" communication - the player to whisper to.