fix(onebot): report rejected group kick operations
Treat group member removal as successful only when QQ accepts the operation. Preserve the rejection reason so callers no longer receive a false success when a target cannot be removed. Apply the same behavior to single-member and batch removal actions, while keeping accepted operations unchanged. Add regression coverage for both successful and rejected responses. Fixes #298
This commit is contained in:
4 files changed
+63
-10
No files matched your search
@@ -62,6 +62,14 @@ export interface OidbKickMember {
|
||||
rejectAddRequest?: pb<4, bool>;
|
||||
reason?: pb<5, string>;
|
||||
}
|
||||
// 0x8A0_1 response body. Cross-checked against Lagrange.Core's
|
||||
// OidbSvcTrpcTcp0x8A0_1Response and the current QQ kick result contract:
|
||||
// transport/envelope success does not imply the member was removed; a
|
||||
// command-level refusal is returned in errorMsg.
|
||||
export interface OidbKickMemberResponse {
|
||||
groupUin?: pb<1, uint_32>;
|
||||
errorMsg?: pb<2, string>;
|
||||
}
|
||||
export interface OidbLeaveGroup {
|
||||
groupUin?: pb<1, uint_32>;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user