aboutsummaryrefslogtreecommitdiffstats
path: root/bot/cogs/moderation.py
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-01-06 17:32:13 +0100
committerGravatar Johannes Christ <[email protected]>2019-01-06 17:32:13 +0100
commit809348d633172c3c2cfd785cd1d6aa0331e48e74 (patch)
tree81a2bf4af6365dd679a5e32534d7d87e6eafc3da /bot/cogs/moderation.py
parentRemove unused import, use `tuple`. (diff)
Move note and warning creation to Django API backend.
Diffstat (limited to '')
-rw-r--r--bot/cogs/moderation.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py
index 7cc2c9b86..d725755cd 100644
--- a/bot/cogs/moderation.py
+++ b/bot/cogs/moderation.py
@@ -87,7 +87,9 @@ class Moderation(Scheduler):
reason=reason
)
- response_object = await post_infraction(ctx, user, type="warning", reason=reason)
+ response_object = await post_infraction(
+ ctx, user, type="warning", reason=reason
+ )
if response_object is None:
return
@@ -386,7 +388,10 @@ class Moderation(Scheduler):
:param reason: The reason for the warning.
"""
- response_object = await post_infraction(ctx, user, type="warning", reason=reason, hidden=True)
+ response_object = await post_infraction(
+ ctx, user, type="warning", reason=reason, hidden=True
+ )
+
if response_object is None:
return