diff options
| author | 2019-02-18 21:14:34 +0100 | |
|---|---|---|
| committer | 2019-02-18 21:14:34 +0100 | |
| commit | 9c6e92626dbd7907ba9acb76b32f24b4131c3493 (patch) | |
| tree | e553665b80c8671b30ef2551b50a4f6e0d84fcb4 | |
| parent | Update defcon cog to use Django API. (diff) | |
Use proper API client for reminders.
Diffstat (limited to '')
| -rw-r--r-- | bot/cogs/reminders.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/reminders.py b/bot/cogs/reminders.py index 78f1cd73b..b86fecd5c 100644 --- a/bot/cogs/reminders.py +++ b/bot/cogs/reminders.py @@ -277,7 +277,7 @@ class Reminders(Scheduler):          """          # Send the request to update the reminder in the database -        reminder = await self.bot.http_session.patch( +        reminder = await self.bot.api_client.patch(              'bot/reminders/' + str(id_),              json={'expiration': expiration.isoformat()}          ) @@ -296,7 +296,7 @@ class Reminders(Scheduler):          """          # Send the request to update the reminder in the database -        reminder = await self.bot.http_session.patch( +        reminder = await self.bot.api_client.patch(              'bot/reminders/' + str(id_),              json={'content': content}          )  |