EVENT_GROUP_MEMBER_ROLE_CHANGED
ESO Lua API function — used by 38 of the 3,030 addons we indexed (combined 19,742,724 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
EVENT_GROUP_MEMBER_ROLE_CHANGED(string unitTag, [LFGRole|#LFGRole] newRole)Real usage — from AUI - Advanced UI
EVENT_MANAGER:RegisterForEvent("AUI_EVENT_UNIT_FRAME_UPDATE", EVENT_UNIT_FRAME_UPDATE, OnUnitFrameUpdate)
EVENT_MANAGER:RegisterForEvent("AUI_EVENT_GROUP_MEMBER_ROLE_CHANGED", EVENT_GROUP_MEMBER_ROLE_CHANGED, OnGroupMemberRoleChanged)
Short excerpt from the shipping addon AUI - Advanced UI — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| Bandits User Interface | 6,130,317 |
| AUI - Advanced UI | 5,406,091 |
| Code's Combat Alerts | 4,445,158 |
| Foundry Tactical Combat (FTC) | 1,097,601 |
| CrutchAlerts | 916,918 |
| OdySupportIcons - Group Role Icons & More | 484,590 |