From 610e9902a9618bff85c05dfa30c2a39e911b7663 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Mon, 24 Jul 2023 09:25:00 -0400 Subject: [PATCH] fix: stop was using requests still and erroring because of it --- pterodactyl/ptero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 7910537..821c8a7 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -202,7 +202,7 @@ class Pterodactyl(commands.Cog): await interaction.response.defer(ephemeral=True, thinking=True) interaction_message = await interaction.original_response() headers = await self.get_headers(interaction.guild) - async with requests.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response: + async with self.session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response: response_json = await response.json() current_status = response_json['attributes']['current_state'] if current_status == "running" or current_status == "starting":