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}"