processorExcludeSelf

inline fun <EX : Event.Extra, E : Event<EX>> KookBot.processorExcludeSelf(eventParser: EventParser<EX, E>, crossinline block: suspend (E) -> Unit)

提供一个 EventParser 进行事件验证并在验证通过时进行事件处理。

由于 Kook 事件可能会触发bot自身发的消息,通过 processorExcludeSelf

See also


inline fun <EX : Event.Extra, E : Event<EX>> KookBot.processorExcludeSelf(eventDefinition: KookEventParserDefinition<EX, E>, crossinline block: suspend (E) -> Unit)

提供一个 KookEventParserDefinition 进行事件验证并在验证通过时进行事件处理。

See also