register

Register an arrow-function callback for an Event (e.g. Event.CHAT) or custom type id.