wowpedia
Main Menu


Accepts the invitation from a group.

AcceptGroup()

Example

The following snippet auto-accepts invitations from characters whose names begin with the letter A.

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PARTY_INVITE_REQUEST")
frame:SetScript("OnEvent", function(self, event, sender)
	if sender:sub(1,1) == "A" then
	     AcceptGroup()
	end
end)

Details