aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/moderation.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-14 15:10:39 +0200
committerGravatar Leon Sandøy <[email protected]>2019-09-14 15:10:39 +0200
commitdd2fa899c8d5ffef3725e7d86126670f974c0122 (patch)
treedd10ebdcc2d9ff088837a3902c3b769609b9ac5c /bot/utils/moderation.py
parentNuking the Roles.developer role. (diff)
parentMerge branch 'django' of github.com:python-discord/bot into django (diff)
Merge branch 'django' of github.com:python-discord/bot into django
Diffstat (limited to 'bot/utils/moderation.py')
-rw-r--r--bot/utils/moderation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/moderation.py b/bot/utils/moderation.py
index b295e4649..7860f14a1 100644
--- a/bot/utils/moderation.py
+++ b/bot/utils/moderation.py
@@ -37,7 +37,7 @@ async def post_infraction(
try:
response = await ctx.bot.api_client.post('bot/infractions', json=payload)
except ResponseCodeError as exp:
- if exp.status == 400 and 'user' in exp.response_data:
+ if exp.status == 400 and 'user' in exp.response_json:
log.info(
f"{ctx.author} tried to add a {type} infraction to `{user.id}`, "
"but that user id was not found in the database."