mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Fix #227
This commit is contained in:
parent
90ee9b441a
commit
77a0ba6e29
@ -602,12 +602,12 @@ data class NewFriendRequestEvent(
|
|||||||
|
|
||||||
@JavaFriendlyAPI
|
@JavaFriendlyAPI
|
||||||
@JvmName("accept")
|
@JvmName("accept")
|
||||||
fun ` __ accept blocking for java __`() = runBlocking { accept() }
|
fun __acceptBlockingForJava__() = runBlocking { accept() }
|
||||||
|
|
||||||
@JavaFriendlyAPI
|
@JavaFriendlyAPI
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
@JvmName("reject")
|
@JvmName("reject")
|
||||||
fun ` __ reject blocking for java __`(blackList: Boolean = false) =
|
fun __rejectBlockingForJava__(blackList: Boolean = false) =
|
||||||
runBlocking { reject(blackList) }
|
runBlocking { reject(blackList) }
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -653,18 +653,18 @@ data class MemberJoinRequestEvent(
|
|||||||
|
|
||||||
@JavaFriendlyAPI
|
@JavaFriendlyAPI
|
||||||
@JvmName("accept")
|
@JvmName("accept")
|
||||||
fun ` __ accept blocking for java __`() = runBlocking { bot.acceptMemberJoinRequest(this@MemberJoinRequestEvent) }
|
fun __acceptBlockingForJava__() = runBlocking { bot.acceptMemberJoinRequest(this@MemberJoinRequestEvent) }
|
||||||
|
|
||||||
@JavaFriendlyAPI
|
@JavaFriendlyAPI
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
@JvmName("reject")
|
@JvmName("reject")
|
||||||
fun ` __ reject blocking for java __`(blackList: Boolean = false) =
|
fun __rejectBlockingForJava__(blackList: Boolean = false) =
|
||||||
runBlocking { bot.rejectMemberJoinRequest(this@MemberJoinRequestEvent, blackList) }
|
runBlocking { bot.rejectMemberJoinRequest(this@MemberJoinRequestEvent, blackList) }
|
||||||
|
|
||||||
@JavaFriendlyAPI
|
@JavaFriendlyAPI
|
||||||
@JvmOverloads
|
@JvmOverloads
|
||||||
@JvmName("ignore")
|
@JvmName("ignore")
|
||||||
fun ` __ ignore blocking for java __`(blackList: Boolean = false) =
|
fun __ignoreBlockingForJava__(blackList: Boolean = false) =
|
||||||
runBlocking { bot.ignoreMemberJoinRequest(this@MemberJoinRequestEvent, blackList) }
|
runBlocking { bot.ignoreMemberJoinRequest(this@MemberJoinRequestEvent, blackList) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user