diff options
| author | 2019-10-23 17:43:08 -0700 | |
|---|---|---|
| committer | 2019-10-25 15:32:20 -0700 | |
| commit | 6ba259ab5a39cf4257084f5458b93ab02fbfa8fa (patch) | |
| tree | 928d3bb6cec0dc9a2ee92f9e3c9a0c4712494268 | |
| parent | Superstarify: add icons to constants and config (diff) | |
InfractionScheduler: use fetched user for notify_infraction
| -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): |