mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-21 07:56:56 +08:00
Add note to NormalMemberImpl.kick
This commit is contained in:
parent
f6018d1943
commit
5b16414e9e
@ -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}" }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user