UninviteUnit

From Warcraft Wiki
Jump to navigation Jump to search
Flavors
Links
Info
Added in 2.0.1 / 1.13.2

Removes a player from the group if you're the leader, or initiates a vote to kick.

UninviteUnit(name [, reason])

Arguments

name
string - Name of the player to remove from group. When removing cross-server players, it is important to include the server name: "Ygramul-Emerald Dream".
reason
string? - Used when initiating a kick vote against the player.

Details

  • If you're in a Dungeon Finder group and call UninviteUnit without providing a reason, the VOTE_KICK_REASON_NEEDED event will fire to notify you that a reason is required to initiate a kick vote.

History

  • The first argument to this function was changed from "unit" to "name" in Patch 3.0.8.
  • The reason argument was added in Patch 3.3.3; previously, kick votes did not require a reason.