Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information