mirror of
https://github.com/Nezumi-2711/astrbot_plugin_qq_group_daily_analysis.git
synced 2026-09-22 05:31:52 +00:00
fix(muted): set_reaction 失败的情况可能是禁言,直接判断为处于禁言状态
This commit is contained in:
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user