mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-09 18:26:58 +08:00
Throw specific ISE when kicking members too fast, close #1503
This commit is contained in:
parent
8e8dd0e26b
commit
ca80f5285f
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user