WoW API: PromoteToLeader

From AddOn Studio
Jump to navigation Jump to search

WoW API < PromoteToLeader


Promotes a unit to party leader.

PromoteToLeader(unitId or playerName)


Arguments[edit]

unitId
UnitId - The unit to promote.
playername
PlayerName - The full name of the player to promote.

Returns[edit]

nil

Example Code[edit]

If you have a character named "Character", to promote him to leader you can type in-game:
/script PromoteToLeader("Character");