From 77a0ba6e2956b503e03c978c80f1ad78a7dc6a5b Mon Sep 17 00:00:00 2001 From: Him188 Date: Wed, 15 Apr 2020 16:48:41 +0800 Subject: [PATCH] Fix #227 --- .../kotlin/net.mamoe.mirai/event/events/BotEvents.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt index 4190ce11c..ed6a7c1ff 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt @@ -602,12 +602,12 @@ data class NewFriendRequestEvent( @JavaFriendlyAPI @JvmName("accept") - fun ` __ accept blocking for java __`() = runBlocking { accept() } + fun __acceptBlockingForJava__() = runBlocking { accept() } @JavaFriendlyAPI @JvmOverloads @JvmName("reject") - fun ` __ reject blocking for java __`(blackList: Boolean = false) = + fun __rejectBlockingForJava__(blackList: Boolean = false) = runBlocking { reject(blackList) } } @@ -653,18 +653,18 @@ data class MemberJoinRequestEvent( @JavaFriendlyAPI @JvmName("accept") - fun ` __ accept blocking for java __`() = runBlocking { bot.acceptMemberJoinRequest(this@MemberJoinRequestEvent) } + fun __acceptBlockingForJava__() = runBlocking { bot.acceptMemberJoinRequest(this@MemberJoinRequestEvent) } @JavaFriendlyAPI @JvmOverloads @JvmName("reject") - fun ` __ reject blocking for java __`(blackList: Boolean = false) = + fun __rejectBlockingForJava__(blackList: Boolean = false) = runBlocking { bot.rejectMemberJoinRequest(this@MemberJoinRequestEvent, blackList) } @JavaFriendlyAPI @JvmOverloads @JvmName("ignore") - fun ` __ ignore blocking for java __`(blackList: Boolean = false) = + fun __ignoreBlockingForJava__(blackList: Boolean = false) = runBlocking { bot.ignoreMemberJoinRequest(this@MemberJoinRequestEvent, blackList) } }