diff --git a/mirai-core/src/commonMain/kotlin/contact/NormalMemberImpl.kt b/mirai-core/src/commonMain/kotlin/contact/NormalMemberImpl.kt index f3fc96c10..cdb3abc70 100644 --- a/mirai-core/src/commonMain/kotlin/contact/NormalMemberImpl.kt +++ b/mirai-core/src/commonMain/kotlin/contact/NormalMemberImpl.kt @@ -177,6 +177,7 @@ internal class NormalMemberImpl constructor( ban = block ).sendAndExpect() + if (response.ret == 255) error("Operation too fast") // https://github.com/mamoe/mirai/issues/1503 check(response.success) { "kick failed: ${response.ret}" } @Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")