Lore archive · Warcraft Wiki, 2023 dump
API C ChatInfo.RegisterAddonMessagePrefix
Last wiki revision 2022-08-01
Registers an addon message prefix to receive messages for that prefix. successfulRequest = C_ChatInfo.RegisterAddonMessagePrefix(prefix)
- prefix: - The message prefix to register for delivery, at most 16 characters.
- successfulRequest: - true if registration succeeded, false if too many prefixes have been registered (>512). Caveat: This does not return false if the prefix length is too big (>16).
- Registering prefixes does not persist after doing a /reload
- It's recommended to use the addon name as a prefix (provided it fits within the 16 byte limit) since it's more likely to be unique and other addon authors will have an easier time instead of figuring out what addon a certain abbreviation belongs to. See the Globe wut page for a list of addons that use this API to avoid collisions.
Source
https://warcraft.wiki.gg/wiki/API_C_ChatInfo.RegisterAddonMessagePrefix · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.