mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 23:20:09 +08:00
Make removePrefix defaults true
This commit is contained in:
parent
558ece3ae2
commit
98e39ea463
@ -127,7 +127,7 @@ class MessageSubscribersBuilder<T : MessagePacket<*>>(
|
|||||||
*/
|
*/
|
||||||
suspend fun startsWith(
|
suspend fun startsWith(
|
||||||
prefix: String,
|
prefix: String,
|
||||||
removePrefix: Boolean = false,
|
removePrefix: Boolean = true,
|
||||||
onEvent: @MessageDsl suspend T.(String) -> Unit
|
onEvent: @MessageDsl suspend T.(String) -> Unit
|
||||||
) =
|
) =
|
||||||
content({ it.startsWith(prefix) }) {
|
content({ it.startsWith(prefix) }) {
|
||||||
|
Loading…
Reference in New Issue
Block a user