on

fun on(event: WebhookEvent, handler: suspend (JsonObject) -> Unit)

Registers a handler for a specific webhook event.