wowpedia
Main Menu


Declines an invitation to a group.

DeclineGroup()

Example

The following snippet auto-declines invitations from characters whose names contain Ghost.

local frame = CreateFrame("FRAME")
frame:RegisterEvent("PARTY_INVITE_REQUEST")
frame:SetScript("OnEvent", function(self, event, sender)
	if sender:match("Ghost") then
	     DeclineGroup()
	end
end)

Details