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

Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
wdvxdr 2023-02-06 20:39:17 +08:00
commit 2af671cec9

View File

@ -1166,7 +1166,7 @@ func (bot *CQBot) CQSetGroupBan(groupID, userID int64, duration uint32) global.M
if m := g.FindMember(userID); m != nil {
err := m.Mute(duration)
if err != nil {
if duration > 2592000 {
if duration >= 2592000 {
return Failed(100, "DURATION_IS_NOT_IN_RANGE", "非法的禁言时长")
}
return Failed(100, "NOT_MANAGEABLE", "机器人权限不足")