From 9c6e92626dbd7907ba9acb76b32f24b4131c3493 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 18 Feb 2019 21:14:34 +0100 Subject: Use proper API client for reminders. --- bot/cogs/reminders.py | 4 ++-- 1 file 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} ) -- cgit v1.2.3