aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/exts/moderation/infraction/management.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py
index c813d1fdc..c12dff928 100644
--- a/bot/exts/moderation/infraction/management.py
+++ b/bot/exts/moderation/infraction/management.py
@@ -65,9 +65,10 @@ class ModManagement(commands.Cog):
await ctx.send(f"{constants.Emojis.failmail} You may not resend hidden infractions.")
return
- member = await get_or_fetch_member(ctx.guild, infraction["user"])
+ member_id = infraction["user"]["id"]
+ member = await get_or_fetch_member(ctx.guild, member_id)
if not member:
- await ctx.send(f"{constants.Emojis.failmail} Cannot find member `{infraction['user']}`.")
+ await ctx.send(f"{constants.Emojis.failmail} Cannot find member `{member_id}` in the guild.")
return
id_ = infraction["id"]