Open sentry-io[bot] opened 1 year ago
Antispam should just ignore the DM channel honestly, that has several issues now that I think about it.
So around this line https://github.com/python-discord/bot/blob/4f4eef6c1701b844a4bb1bc21e6de2b53aa72843/bot/exts/filtering/_filter_lists/antispam.py#L69 we can filter out DM messages.
Antispam should just ignore the DM channel honestly, that has several issues now that I think about it.
Is there a way to filter those messages out of the FilterContext.message_cache
before this function even gets hit, or is the caller of this function in a generic super class?
yeah the cache is used for other stuff so it shouldn't be filtered out there. Not sure what you mean by the caller
Looking back at this I'm not entirely sure what's going on. None of the filters in this list trigger on DMs.
Looks like we already have some code regarding filtering DMs https://github.com/python-discord/bot/blob/577c8da66e618666891eaf237c4e0ca33750230f/bot/exts/filtering/_settings_types/validations/filter_dm.py but it looks like this isn't being used except in a test.
Sentry Issue: BOT-3KT