diff options
| author | 2021-10-26 13:29:37 +0300 | |
|---|---|---|
| committer | 2021-10-26 11:29:37 +0100 | |
| commit | e7959146d7949377d35a433ad83f0841070587d9 (patch) | |
| tree | dfc96806355fed845b6c200ec8ba48aeceabaadc /tests/_autospec.py | |
| parent | Merge 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