mirai
2.16.0
common
mirai-core-api
/
net.mamoe.mirai.event
/
MessageSubscribersBuilder
/
endsWith
ends
With
@
JvmOverloads
fun
endsWith
(
suffix
:
String
,
trim
:
Boolean
=
true
)
:
MessageSubscribersBuilder.ListeningFilter
<
M
,
Ret
,
R
,
RR
>
fun
endsWith
(
suffix
:
String
,
removeSuffix
:
Boolean
=
true
,
trim
:
Boolean
=
true
,
onEvent
:
suspend
M
.
(
String
)
->
R
)
:
Ret
如果消息的结尾是
suffix