WoW API < InviteUnit

Invite a player to join your party.

 InviteUnit(playerName) 

Parameters[edit | edit source]

Arguments[edit | edit source]

(String playerName)

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

Returns[edit | edit source]

nil

Example[edit | edit source]

 InviteUnit("Dyselon"); 

Result[edit | edit source]

Description[edit | edit source]

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 | edit source]

Template:Patch 3.0.8

Community content is available under CC-BY-SA unless otherwise noted.