Add note to NormalMemberImpl.kick

This commit is contained in:
Him188 2021-11-26 18:21:48 +00:00
parent f6018d1943
commit 5b16414e9e

View File

@ -177,6 +177,8 @@ internal class NormalMemberImpl constructor(
ban = block
).sendAndExpect()
// Note: when member not found, result is still true.
if (response.ret == 255) error("Operation too fast") // https://github.com/mamoe/mirai/issues/1503
check(response.success) { "kick failed: ${response.ret}" }