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

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

@nullqwertyuiop

Description

@nullqwertyuiop

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions