From 8eb4039c64ec21708ed78cd332f6ef7fb45f4500 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 5 Oct 2023 13:04:44 -0400 Subject: [PATCH] fix(moderation): case now uses fetch_user instead of get_user --- moderation/moderation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moderation/moderation.py b/moderation/moderation.py index c8158eb..d3b4ed0 100644 --- a/moderation/moderation.py +++ b/moderation/moderation.py @@ -375,11 +375,11 @@ class Moderation(commands.Cog): "expired": result[10] } try: - target = interaction.client.get_user(case["target_id"]) + target = await interaction.client.fetch_user(case["target_id"]) except discord.errors.NotFound: target = discord.User(id=case["target_id"], name="Deleted User", discriminator="0") try: - moderator = interaction.client.get_user(case["moderator_id"]) + moderator = await interaction.client.fetch_user(case["moderator_id"]) except discord.errors.NotFound: moderator = discord.User(id=case["moderator_id"], name="Deleted User", discriminator="0") target_name = target.name if target.discriminator == "0" else f"{target.name}#{target.discriminator}"