修复.unban

This commit is contained in:
HibiKier 2022-12-13 23:01:12 +08:00
parent 93deb2b1be
commit b6b2f2e2a6
2 changed files with 6 additions and 2 deletions

View File

@ -296,6 +296,10 @@ PS: **ARM平台** 请使用全量版 同时 **如果你的机器 RAM < 1G 可能
## 更新
### 2022/12/13
* 修复.unban
### 2022/12/12
* 修改HTML帮助禁用提示文本错误

View File

@ -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)