listenEventsAnnotated

fun OneBotV11Client.listenEventsAnnotated(listener: Any, scope: CoroutineScope, onHandlerError: (Throwable, OneBotV11Event) -> Unit = { error, _ -> throw error }): Job

Subscribes to OneBotV11Client.events and dispatches each event to methods annotated with Event.