aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar Boris Muratov <[email protected]>2021-10-26 13:29:37 +0300
committerGravatar GitHub <[email protected]>2021-10-26 11:29:37 +0100
commite7959146d7949377d35a433ad83f0841070587d9 (patch)
treedfc96806355fed845b6c200ec8ba48aeceabaadc /tests/_autospec.py
parentMerge pull request #1893 from python-discord/filters/autoban (diff)
Handle autoban filtering in DMs (#1914)
An autoban trigger being sent in DMs caused the ban to fail, but for it to still be registered in the database. That is becuase the ban command uses the `ctx.guild.ban` method, but in DMs `ctx.guild` is None. This commit solves it by overriding the `context.guild` field.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions