aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/cogs/information.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bot/cogs/information.py b/bot/cogs/information.py
index 7a244cdbe..476820feb 100644
--- a/bot/cogs/information.py
+++ b/bot/cogs/information.py
@@ -150,14 +150,14 @@ class Information:
)
# Infractions
- api_response = await self.bot.http_session.get(
- url=URLs.site_infractions_user.format(user_id=user.id),
- params={"hidden": hidden},
- headers=self.headers
+ infractions = await self.bot.api_client.get(
+ 'bot/infractions',
+ params={
+ 'hidden': hidden,
+ 'user__id': str(user.id)
+ }
)
- infractions = await api_response.json()
-
infr_total = 0
infr_active = 0