mirai-core / net.mamoe.mirai.event / MessageSubscribersBuilder / contains

contains

@JvmOverloads fun contains(sub: String, ignoreCase: Boolean = false): ListeningFilter<M, Ret, R, RR>

消息内容包含 sub

fun contains(sub: String, ignoreCase: Boolean = false, trim: Boolean = true, onEvent: MessageListener<M, R>): Ret

消息内容包含 sub 中的任意一个元素

@PlannedRemoval("1.0.0") fun contains(message: Message, onEvent: MessageListener<M, R>): Ret
Deprecated: for binary compatibility