Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

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

Open
nullqwertyuiop opened this issue Jun 16, 2023 · 1 comment
Open

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

nullqwertyuiop opened this issue Jun 16, 2023 · 1 comment

Comments

@nullqwertyuiop
Copy link
Contributor

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
@GreyElaina
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants