From 6afa6af4a14fdb045c2d7a407b2900f6204ad289 Mon Sep 17 00:00:00 2001 From: Karlatemp Date: Sat, 20 Jun 2020 21:16:06 +0800 Subject: [PATCH] Fix test --- .../kotlin/net/mamoe/mirai/console/command/TestComposite.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/mirai-console/src/test/kotlin/net/mamoe/mirai/console/command/TestComposite.kt b/backend/mirai-console/src/test/kotlin/net/mamoe/mirai/console/command/TestComposite.kt index c1cfe009f..133eb62db 100644 --- a/backend/mirai-console/src/test/kotlin/net/mamoe/mirai/console/command/TestComposite.kt +++ b/backend/mirai-console/src/test/kotlin/net/mamoe/mirai/console/command/TestComposite.kt @@ -18,8 +18,9 @@ object TestCompositeCommand : CompositeCommand( "groupManagement", "grpMgn" ) { @SubCommand - suspend fun CommandSender.mute(image: Image, target: Member, seconds: Int) { + suspend fun CommandSender.mute(image: Image, target: Member, seconds: Int): Boolean { target.mute(seconds) + return true } }