fix(muted): set_reaction 失败的情况可能是禁言,直接判断为处于禁言状态

This commit is contained in:
SXP-Simon
2026-07-10 15:14:26 +08:00
parent cd21776b1f
commit 24db140382
@@ -1008,7 +1008,7 @@ class OneBotAdapter(PlatformAdapter):
if not e:
return False
err_str = str(e)
if "1200" in err_str and ("禁言" in err_str or "操作失败" in err_str):
if "1200" in err_str and ("禁言" in err_str or "操作失败" in err_str or "下游群鉴权" in err_str):
return True
err_msg = getattr(e, "message", "") or ""
err_word = getattr(e, "wording", "") or ""