Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Registers an addon message prefix to receive messages for that prefix.

successfulRequest = C_ChatInfo.RegisterAddonMessagePrefix(prefix)

Arguments[]

prefix
string - The message prefix to register for delivery, at most 16 characters.

Returns[]

successfulRequest
boolean - 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).

Details[]

  • 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.

Patch changes[]

Battle for Azeroth Patch 8.0.1 (2018-07-17): Moved to C_ChatInfo.RegisterAddonMessagePrefix()
Cataclysm Patch 4.1.0 (2011-04-26): Added as RegisterAddonMessagePrefix()

See also[]

Advertisement