processor

inline fun <EX : EventExtra> Bot.processor(crossinline processor: suspend Event<EX>.(raw: String) -> Unit)(source)

Deprecated

Use `Bot.subscribe(...)`

Replace with

this.subscribe<EX>(processor)

针对一个具体的 EventExtra 类型进行监听。

Parameters

EX

事件内容 Event.extra 的具体类型。


inline fun Bot.processor(type: Event.Type, crossinline processor: suspend Event<*>.(raw: String) -> Unit)(source)

Deprecated

Use `Bot.subscribe(...)`

Replace with

this.subscribe(type, processor)

针对一个 Event.type 目标进行监听。

Parameters

type

事件类型。