diff options
author | 2019-10-08 19:37:59 +0200 | |
---|---|---|
committer | 2019-10-08 19:37:59 +0200 | |
commit | 5da0868a29b75be301ecfeca67901640581a21d6 (patch) | |
tree | 4f33c75a100d3b89fb5c1a12b37f4067790413c5 /tests/helpers.py | |
parent | Set bot as actor of antispam infractions (diff) |
Show infraction reason when the bot is the actor
https://github.com/python-discord/bot/issues/476
We recently decided to hide the reason in the confirmation message
the bot sends after applying an infraction. In most situations, this
makes sense, since the message containing the invocation command
already contains the reason.
However, if the infraction was triggered by the bot itself (e.g., an
antispam trigger), this means that we're missing information that
provides context to the infraction.
This commit adds the reason back to the confirmation message, but
only if the actor of the infraction was the bot itself.
Closes #476
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions