View Single Post
04-10-21, 03:49 AM   #5
LudiusMaximus
A Rage Talon Dragon Guard
 
LudiusMaximus's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2018
Posts: 320
I found a way to get a list of all events:

Lua Code:
  1. if not APIDocumentation then
  2.   LoadAddOn("Blizzard_APIDocumentation");
  3. end
  4.  
  5. local allEvents = APIDocumentation:GetAPITableByTypeName("event")
  6.  
  7. for k, v in pairs(allEvents) do
  8.   print(k, v.LiteralName)
  9. end


So now I can check my events before I call RegisterEvent() :-)
__________________
~ Be the change you want to see in the world... of warcraft interface! ~

Last edited by LudiusMaximus : 04-10-21 at 03:54 AM.
  Reply With Quote