Package-level declarations
Types
Link copied to clipboard
class DefaultOneBotV11Client(transport: OneBotV11Transport, json: Json = OneBotV11Json.default) : OneBotV11Client
Default OneBotV11Client implementation backed by a OneBotV11Transport.
Link copied to clipboard
Marks a listener method as an OneBot V11 event handler.
Link copied to clipboard
class EventDispatcher
Reflection-based dispatcher that invokes listener methods annotated with Event.
Link copied to clipboard
OneBot V11 action wrapper for common messaging and query actions.
Link copied to clipboard
interface OneBotV11Client
Core OneBot V11 client abstraction.
Functions
Link copied to clipboard
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.
Link copied to clipboard
Builds an EventDispatcher from this listener instance.
Link copied to clipboard
Creates a OneBotV11Api wrapper from an existing OneBotV11Client.