diff options
| author | 2020-07-12 23:49:46 -0700 | |
|---|---|---|
| committer | 2020-07-12 23:49:46 -0700 | |
| commit | e1c3b66f5f4d1f421d6469bd4f0964166262832c (patch) | |
| tree | 4e2ab4ee2a14fc8376716a7825677714eac38bb2 | |
| parent | Merge pull request #1017 from python-discord/feat/backend/800/scheduler-redesign (diff) | |
Fix rescheduling of edited infractions
It was attempting to schedule a dictionary instead of a coroutine.
Fixes #1043
Fixes BOT-6Y
| -rw-r--r-- | bot/cogs/moderation/management.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py index 4ef9d4209..672bb0e9c 100644 --- a/bot/cogs/moderation/management.py +++ b/bot/cogs/moderation/management.py @@ -139,7 +139,7 @@ class ModManagement(commands.Cog): # If the infraction was not marked as permanent, schedule a new expiration task if request_data['expires_at']: - self.infractions_cog.scheduler.schedule(new_infraction['id'], new_infraction) + self.infractions_cog.schedule_expiration(new_infraction) log_text += f""" Previous expiry: {old_infraction['expires_at'] or "Permanent"} |