From fe92bb54df63c63c510bb615c516f0b89f173ed0 Mon Sep 17 00:00:00 2001 From: PSoul Date: Tue, 1 Aug 2023 11:47:11 +0800 Subject: [PATCH] api: rename kick message type (#1775) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 踢人时进行判断,当该人不在群内时返回人员不存在的错误 Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com> --- coolq/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolq/api.go b/coolq/api.go index 63f1a73..4dd2fd2 100644 --- a/coolq/api.go +++ b/coolq/api.go @@ -1155,7 +1155,7 @@ func (bot *CQBot) CQSetGroupKick(groupID int64, userID int64, msg string, block if g := bot.Client.FindGroup(groupID); g != nil { m := g.FindMember(userID) if m == nil { - return Failed(100, "MEMBER_IS_NOT_IN_GROUP", "人员不存在") + return Failed(100, "MEMBER_NOT_FOUND", "人员不存在") } err := m.Kick(msg, block) if err != nil {