diff options
| -rw-r--r-- | bot/cogs/moderation/scheduler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/scheduler.py b/bot/cogs/moderation/scheduler.py index 045b0bd13..cef96de99 100644 --- a/bot/cogs/moderation/scheduler.py +++ b/bot/cogs/moderation/scheduler.py @@ -80,7 +80,7 @@ class InfractionScheduler(Scheduler): # DM the user about the infraction if it's not a shadow/hidden infraction. if not infraction["hidden"]: # Sometimes user is a discord.Object; make it a proper user. - await self.bot.fetch_user(user.id) + user = await self.bot.fetch_user(user.id) # Accordingly display whether the user was successfully notified via DM. if await utils.notify_infraction(user, infr_type, expiry, reason, icon): |