WoW:API UninviteUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Created page with '{{wowapi}} Removes a player from the party/raid group if you're the party leader, or initiates a vote to kick a player from a Dungeon Finder group. UninviteUnit("name" [, "reaso…')
 
m (Move page script moved page API UninviteUnit to API UninviteUnit without leaving a redirect)
 
(No difference)

Latest revision as of 04:47, 15 August 2023

WoW API < UninviteUnit

Removes a player from the party/raid group if you're the party leader, or initiates a vote to kick a player from a Dungeon Finder group.

UninviteUnit("name" [, "reason"])

Arguments[edit]

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 (Optional) - Used when initiating a kick vote against the player.

Notes[edit]

  • 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[edit]

  • 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.