aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2022-02-22 18:36:26 -0800
committerGravatar MarkKoz <[email protected]>2022-02-22 18:36:26 -0800
commit940c9048cc95c114d2ea657e3efc3a9d9468d831 (patch)
tree0e458e49c04b4df690b91834dec6eacc332b044a
parentMerge main into feat/mod/1664/resend-infraction (diff)
Fix Member fetch in resend infraction command
-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"]