diff --git a/README.md b/README.md index d4663d6c..310fd6fe 100644 --- a/README.md +++ b/README.md @@ -296,6 +296,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能 ## 更新 +### 2022/12/13 + +* 修复.unban + ### 2022/12/12 * 修改HTML帮助禁用提示文本错误 diff --git a/utils/depends/__init__.py b/utils/depends/__init__.py index 67e48794..be037513 100644 --- a/utils/depends/__init__.py +++ b/utils/depends/__init__.py @@ -88,7 +88,7 @@ def ImageList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str return Depends(dependency) -def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str]: +def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[int]: """ 说明: 获取at列表(包括回复时),含有msg时不能为空,为空时提示并结束事件 @@ -97,7 +97,7 @@ def AtList(msg: Optional[str] = None, contain_reply: bool = True) -> List[str]: :param contain_reply: 包含回复内容 """ async def dependency(matcher: Matcher, event: MessageEvent): - return await _match(matcher, event, msg, get_message_at, contain_reply) + return [int(x) for x in await _match(matcher, event, msg, get_message_at, contain_reply)] return Depends(dependency)