many < Name extends | "blocklist.sync" | "call.incoming_call" | (keyof ChatEventTypes) | "config.update" | (keyof ConnEventTypes) | "group.participant_changed" | "order.payment_status" | "status.sync" | (keyof WebpackEvents) | "alfa" | "beta" , > ( event : Name , timesToListen : number , listener : ( ... args : ListenerType < ( BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & { alfa : string ; beta : ( from : number , to : string ) => void ; } )[ Name ] , > , ) => void , options : OnOptions & { objectify : true } , ) : Listener Type Parameters Name extends | "blocklist.sync" | "call.incoming_call" | (keyof ChatEventTypes) | "config.update" | (keyof ConnEventTypes) | "group.participant_changed" | "order.payment_status" | "status.sync" | (keyof WebpackEvents) | "alfa" | "beta" Returns Listener many < Name extends | "blocklist.sync" | "call.incoming_call" | (keyof ChatEventTypes) | "config.update" | (keyof ConnEventTypes) | "group.participant_changed" | "order.payment_status" | "status.sync" | (keyof WebpackEvents) | "alfa" | "beta" , > ( event : Name , timesToListen : number , listener : ( ... args : ListenerType < ( BlocklistEventTypes & CallEventTypes & ChatEventTypes & ConfigEventTypes & ConnEventTypes & GroupEventTypes & OrderEventTypes & StatusEventTypes & WebpackEvents & { alfa : string ; beta : ( from : number , to : string ) => void ; } )[ Name ] , > , ) => void , options ?: boolean | OnOptions , ) : this Type Parameters Name extends | "blocklist.sync" | "call.incoming_call" | (keyof ChatEventTypes) | "config.update" | (keyof ConnEventTypes) | "group.participant_changed" | "order.payment_status" | "status.sync" | (keyof WebpackEvents) | "alfa" | "beta" Returns this
Adds a listener that will execute n times for the event before being removed. The listener is invoked only the first n times the event is fired, after which it is removed.