aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sco1 <[email protected]>2019-01-09 17:09:57 -0500
committerGravatar sco1 <[email protected]>2019-01-09 17:09:57 -0500
commit3ed3e2e96ef9e9ab827e331d796f9549bc63455c (patch)
tree507f545450df462603f90c1c5d9dc4f4511e5332
parentGet member object for ban infractions to pass to hierarchy check (diff)
Change logging statement to use author instead of username
-rw-r--r--bot/cogs/moderation.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/moderation.py b/bot/cogs/moderation.py
index 46c10e084..d9c217b83 100644
--- a/bot/cogs/moderation.py
+++ b/bot/cogs/moderation.py
@@ -1258,8 +1258,8 @@ class Moderation(Scheduler):
if not hierarchy_check:
log.info(
- f"{actor.display_name} ({actor.id}) attempted to {infraction_type} "
- f"{target.display_name} ({target.id}), who has a higher top role"
+ f"{actor} ({actor.id}) attempted to {infraction_type} "
+ f"{target} ({target.id}), who has a higher top role"
)
await ctx.send(f":x: {actor.mention}, you may not {infraction_type} someone with a higher top role")