v0.13.7

C_ChatInfo.SendAddonMessage

functionimplementedavailable in: camelot

Sends a message over an addon comm channel.

signaturewowlua
function C_ChatInfo.SendAddonMessage(    prefix: string,    message: string,    chatType: string?,    target: string?): SendAddonMessageResult

Parameters

nametypedescription
prefixstringMessage prefix, can be used as your addon identifier; at most 16 characters.
messagestringText to send, at most 255 characters. All characters (decimal ID 1-255) are permissible except NULL (ASCII 0).
chatTypestring?The addon channel to send to.
targetstring?The player name or custom channel number receiving the message for "WHISPER" or "CHANNEL" chatTypes.

Returns

result · SendAddonMessageResult · Result code indicating if the message has been enqueued by the API for submission. This does not mean that the message has yet been sent, and may still be subject to any server-side throttling.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (ChatInfo system, camelot 1.60.1). Description: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.