aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2022-06-22 14:18:43 +0100
committerGravatar Chris Lovering <[email protected]>2022-06-22 14:18:43 +0100
commit11f329f6847c0e5f97dac248507bbd2970804f43 (patch)
tree1c198c19a3a688d3d68555fae84465611563d31f
parentImproved output format of guild autoban notifications (diff)
Rename filtering send log kwarg for consistency with where it's sent from
-rw-r--r--bot/exts/filters/filtering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/filters/filtering.py b/bot/exts/filters/filtering.py
index d974a147e..ca6ad0064 100644
--- a/bot/exts/filters/filtering.py
+++ b/bot/exts/filters/filtering.py
@@ -428,7 +428,7 @@ class Filtering(Cog):
reason: Optional[str] = None,
*,
is_eval: bool = False,
- auto_ban: bool = False,
+ autoban: bool = False,
) -> None:
"""Send a mod log for a triggered filter."""
if msg.channel.type is ChannelType.private:
@@ -442,7 +442,7 @@ class Filtering(Cog):
content = str(msg.author.id) # quality-of-life improvement for mobile moderators
# If we are going to autoban, we don't want to ping and don't need the user ID
- if auto_ban:
+ if autoban:
ping_everyone = False
content = None