1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

api: rename kick message type (#1775)

踢人时进行判断,当该人不在群内时返回人员不存在的错误

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
This commit is contained in:
PSoul 2023-08-01 11:47:11 +08:00 committed by GitHub
parent 7cae9829a8
commit fe92bb54df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {