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

endsWith

@JvmOverloads fun endsWith(suffix: String, trim: Boolean = true): ListeningFilter<M, Ret, R, RR>
fun endsWith(suffix: String, removeSuffix: Boolean = true, trim: Boolean = true, onEvent: suspend M.(String) -> R): Ret

如果消息的结尾是 suffix