# SendAddonMessage is not in World of Warcraft Forever: write C_ChatInfo.SendAddonMessage

Forever 1.60.1 (70959), Interface 16001. An addon that calls `SendAddonMessage` stops at /reload with `attempt to call global 'SendAddonMessage' (a nil value)`. Write `C_ChatInfo.SendAddonMessage`; its arguments and returns may differ from the old SendAddonMessage, read them first. Page: https://wowaddons.gg/forever-api/C_ChatInfo.md

```lua
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

---
Make an addon with your 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."
