Widget API: Frame:UnregisterEvent

From AddOn Studio
Jump to navigation Jump to search

Widget API ← Frame < UnregisterEvent

Unregisters an event that the object is currently monitoring.

obj:UnregisterEvent("event");

Parameters[edit]

Arguments[edit]

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

Returns[edit]

nil

Example[edit]

myChatAddon:UnregisterEvent("CHAT_MSG");

Result[edit]

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

Details[edit]

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