mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 18:00:33 +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(
|
||||
prefix: String,
|
||||
removePrefix: Boolean = false,
|
||||
removePrefix: Boolean = true,
|
||||
onEvent: @MessageDsl suspend T.(String) -> Unit
|
||||
) =
|
||||
content({ it.startsWith(prefix) }) {
|
||||
|
Loading…
Reference in New Issue
Block a user