WoW:API PromoteToLeader: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (flagged as API stub)
m (Move page script moved page API PromoteToLeader to API PromoteToLeader without leaving a redirect)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Stub/API}}
{{wowapi}} __NOTOC__
PromoteToLeader("[[API_TYPE_UnitId|UnitID]]") -
 
Promotes the [[API_TYPE_UnitId|UnitID]] to party leader.
 
Promotes a unit to party leader.
PromoteToLeader([[unitId]] or [[playerName]])
 
 
== Arguments ==
:;unitId : [[UnitId]] - The unit to promote.
:;playername : [[PlayerName]] - The full name of the player to promote.
 
== Returns ==
:nil
 
== Example Code ==
:If you have a character named "Character", to promote him to leader you can type in-game:
::/script PromoteToLeader("Character");

Latest revision as of 04:47, 15 August 2023

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");