aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/watchchannels/bigbrother.py
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2019-10-02 11:55:55 -0700
committerGravatar MarkKoz <[email protected]>2019-10-02 11:55:55 -0700
commitd92bc6ec7b0123d098c17ed6c13cbc6497fd0032 (patch)
treef593175cba93ae1a4bd709e2ccfd6fb2391d01ba /bot/cogs/watchchannels/bigbrother.py
parentFormat duration units as a list in management doctsrings (diff)
Rename parameters to stop shadowing type built-in
Co-Authored-By: scragly <[email protected]>
Diffstat (limited to '')
-rw-r--r--bot/cogs/watchchannels/bigbrother.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/bot/cogs/watchchannels/bigbrother.py b/bot/cogs/watchchannels/bigbrother.py
index c332d80b9..bfbb86a97 100644
--- a/bot/cogs/watchchannels/bigbrother.py
+++ b/bot/cogs/watchchannels/bigbrother.py
@@ -64,9 +64,7 @@ class BigBrother(WatchChannel, Cog, name="Big Brother"):
await ctx.send(":x: The specified user is already being watched.")
return
- response = await post_infraction(
- ctx, user, type='watch', reason=reason, hidden=True
- )
+ response = await post_infraction(ctx, user, 'watch', reason, hidden=True)
if response is not None:
self.watched_users[user.id] = response
@@ -91,7 +89,7 @@ class BigBrother(WatchChannel, Cog, name="Big Brother"):
json={'active': False}
)
- await post_infraction(ctx, user, type='watch', reason=f"Unwatched: {reason}", hidden=True, active=False)
+ await post_infraction(ctx, user, 'watch', f"Unwatched: {reason}", hidden=True, active=False)
await ctx.send(f":white_check_mark: Messages sent by {user} will no longer be relayed.")