Skip to content

Commit

Permalink
api: rename kick message type (#1775)
Browse files Browse the repository at this point in the history
踢人时进行判断,当该人不在群内时返回人员不存在的错误

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
  • Loading branch information
PSoul and fumiama authored Aug 1, 2023
1 parent 7cae982 commit fe92bb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coolq/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fe92bb5

Please sign in to comment.