matchText
inline fun <E : MessageEvent> SimpleListenerBuilder<E>.matchText(crossinline textProvider: suspend EventListenerProcessingContext.(E) -> String)(source)
buildSimpleListener(FooMessageEvent) {
matchText { event: FooMessageEvent -> // this: EventListenerProcessingContext
// ...
"MATCH-TEXT" // 需要被匹配的文本
}
}
Content copied to clipboard