Skip to content

Keep deleted messages in cache #1522

@mbaruh

Description

@mbaruh

We want deleted messages to remain in the cache so that the bot can account for them when applying spam rules.

One way of doing that is monkey-patching this part https://github.com/Rapptz/discord.py/blob/master/discord/state.py#L483-L504 but it should be accompanied by proper tests to prevent any funny business on version bumps.

Another way is to cache deleted messages in a separate cache, but well.. it was already cached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)p: 1 - highHigh Priorityt: enhancementChanges or improvements to existing features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions