diff options
author | 2019-10-08 19:09:55 +0200 | |
---|---|---|
committer | 2019-10-08 19:09:55 +0200 | |
commit | c6929bc3224fa2756e4faa78d3c2110046243318 (patch) | |
tree | 65b3c1188f5c7f43e3f8955ab555d5f618d4d1e9 /tests/test_base.py | |
parent | Merge pull request #462 from python-discord/moderation-cleanup (diff) |
Set bot as actor of antispam infractions
As mentioned in #476, the bot currently sets the actor of infractions
applied due to an antispam rule trigger to the offending member. The
reason is that we get a `Context` object from the message that
triggered the antispam rule, which was sent by the offender.
I've changed it by patching both available author attributes,
`Context.author` and `Context.message.author` with the bot user.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions