aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2019-02-18 21:14:34 +0100
committerGravatar Johannes Christ <[email protected]>2019-02-18 21:14:34 +0100
commit9c6e92626dbd7907ba9acb76b32f24b4131c3493 (patch)
treee553665b80c8671b30ef2551b50a4f6e0d84fcb4
parentUpdate defcon cog to use Django API. (diff)
Use proper API client for reminders.
-rw-r--r--bot/cogs/reminders.py4
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}
)