World of Warcraft Forever API · SendAddonMessage.md, for your AI
SendAddonMessage is not in Forever
An addon that calls it stops at /reload with attempt to call global 'SendAddonMessage' (a nil value). Write C_ChatInfo.SendAddonMessage instead: its arguments and returns may differ from the old SendAddonMessage, read them below.
C_ChatInfo.SendAddonMessage
result = C_ChatInfo.SendAddonMessage(prefix, message, [chatType], [target])
Sends a text payload to other clients specified by chatChannel and target which are registered to listen for prefix.
Arguments
prefix | cstring | |
|---|---|---|
message | cstring | |
chatType | cstring may be nil | ChatType, defaults to SLASH_CMD_PARTY. |
target | cstring may be nil | Only applies for targeted channels |
Returns
result | SendAddonMessageResult |
|---|
Every other call of the C_ChatInfo system: C_ChatInfo. The WowAddons app checks a whole addon before the game does: wowaddons check names each call Forever lacks and what to write instead.
Making an addon with an AI? Tell it: Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it. It checks every call against this API before you try it in the game, then publishes it here. How it works.