fix: stop was using requests still and erroring because of it
This commit is contained in:
parent
6ec35134fd
commit
610e9902a9
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ class Pterodactyl(commands.Cog):
|
||||||
await interaction.response.defer(ephemeral=True, thinking=True)
|
await interaction.response.defer(ephemeral=True, thinking=True)
|
||||||
interaction_message = await interaction.original_response()
|
interaction_message = await interaction.original_response()
|
||||||
headers = await self.get_headers(interaction.guild)
|
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()
|
response_json = await response.json()
|
||||||
current_status = response_json['attributes']['current_state']
|
current_status = response_json['attributes']['current_state']
|
||||||
if current_status == "running" or current_status == "starting":
|
if current_status == "running" or current_status == "starting":
|
||||||
|
|
Reference in a new issue