Ichika icon indicating copy to clipboard operation
Ichika copied to clipboard

账号被禁言后 `Group.mute_timestamp` 仍为 0

Open nullqwertyuiop opened this issue 2 years ago • 1 comments

Source Code:

@listen(GroupMessage)
@decorate(MatchContent(".ping"), MatchTemplate([Text]))
async def group_ping(client: Client, group: Group):
    logger.debug(f"{client.uin}: [Cache] {group.mute_timestamp = }")
    g = await client.get_group(group.uin, cache=False)
    logger.debug(f"{client.uin}: [NoCache] {g.mute_timestamp = }")

禁言后日志:

2023-06-16 23:13:55.606 | DEBUG    | library.module.ping:group_ping:13 - **********: [Cache] group.mute_timestamp = 0
2023-06-16 23:13:55.652 | DEBUG    | library.module.ping:group_ping:15 - **********: [NoCache] g.mute_timestamp = 0

nullqwertyuiop avatar Jun 16 '23 15:06 nullqwertyuiop

经验证, global_mute_timestamp 也故障着...

GreyElaina avatar Jun 19 '23 11:06 GreyElaina