Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API Frame UnregisterEvent

From WoW Classic Wiki

Unregisters an event that the object is currently monitoring.

obj:UnregisterEvent("event");

Parameters

Arguments

"event"
The name of the event the object wishes to no longer monitor. See Events.

Returns

nil

Example

myChatAddon:UnregisterEvent("CHAT_MSG");

Result

Code in the <OnEvent> section of your addon would no longer fire anytime a chat message was received.

Details

Unregisters an event that an object is currently monitoring. Note: LUA is a case-sensitive language - there is no function called 'UnRegisterEvent'.
See also: Frame:RegisterEvent