mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 16:09:36 +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
|
ban = block
|
||||||
).sendAndExpect()
|
).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
|
if (response.ret == 255) error("Operation too fast") // https://github.com/mamoe/mirai/issues/1503
|
||||||
check(response.success) { "kick failed: ${response.ret}" }
|
check(response.success) { "kick failed: ${response.ret}" }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user