From bedc5d67407c520ea4955d5ea8f40ddd0004c548 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Sat, 18 Jul 2026 15:44:40 -0500 Subject: [PATCH] Fix OnEvent handler example to use vanilla globals --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/API.md b/docs/API.md index 9b696c20..d8d02cec 100644 --- a/docs/API.md +++ b/docs/API.md @@ -856,7 +856,7 @@ buyout normalization, duration check) applies to each stack. local f = CreateFrame("Frame") for _, e in ipairs({"AUCTION_MULTISELL_START", "AUCTION_MULTISELL_UPDATE", "AUCTION_MULTISELL_FAILURE"}) do f:RegisterEvent(e) end -f:SetScript("OnEvent", function(_, e, a, b) print(e, a, b) end) +f:SetScript("OnEvent", function() print(event, arg1, arg2) end) -- At an open auction house: post 3 stacks of 5, 2h, 100 bid / 200 buyout each C_AuctionHouse.PostItem({ bagID = 0, slotIndex = 1 }, 1, 5, 3, 100, 200)