diff options
-rw-r--r-- | bot/cogs/moderation/infractions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/cogs/moderation/infractions.py b/bot/cogs/moderation/infractions.py index 66f72b1e0..ecb202ab2 100644 --- a/bot/cogs/moderation/infractions.py +++ b/bot/cogs/moderation/infractions.py @@ -45,6 +45,8 @@ class Infractions(Scheduler, commands.Cog): async def reschedule_infractions(self) -> None: """Schedule expiration for previous infractions.""" + await self.bot.wait_until_ready() + infractions = await self.bot.api_client.get( 'bot/infractions', params={'active': 'true'} |