Fandom

WoWWiki

API InviteUnit

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < InviteUnit

Invite a player to join your party.

 InviteUnit(playerName) 

Parameters Edit

Arguments Edit

(String playerName)

playerName 
The name of the player you would like to invite to a group.

Returns Edit

nil

Example Edit

 InviteUnit("Dyselon"); 

Result Edit

Description Edit

Invites the specified playerName to your group. Players from other realms can be invited by using this function, like so:

InviteUnit("Player-RealmName")

Presumably this can only be done with RealID friends, though it possibly also works with players in your current cross-realm zone.

Past changes Edit

0300Wrath-Logo-Small Patch 3.0.8 (2009-01-20): This function originally accepted "token" as a possible argument, but was changed in the patch to accept only player names.
            Code should be updated to use UnitName("token") instead.

Also on Fandom

Random Wiki