![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns whether the unit is the leader of a party or raid.
isLeader = UnitIsGroupLeader(unit [, partyCategory])
Arguments
- unit
- string : UnitId
- partyCategory
- number?
- If omitted, defaults to
INSTANCEif applicable,HOMEotherwise.
- If omitted, defaults to
| Value | Enum | Description |
|---|---|---|
| 1 | LE_PARTY_CATEGORY_HOME | Home-realm group, i.e. a manually created group. |
| 2 | LE_PARTY_CATEGORY_INSTANCE | Instance-specific temporary group, e.g. Battlegrounds, Dungeon Finder |
Returns
- isLeader
- boolean
Patch changes
Patch 5.0.4 (2012-08-28): Added.
