Refactor Pterodactyl cog to use aiohttp #2

Merged
cswimr merged 26 commits from aiohttp-refactor into main 2023-07-24 09:29:55 -04:00
Showing only changes of commit 5398fb77a8 - Show all commits

View file

@ -79,9 +79,9 @@ class Pterodactyl(commands.Cog):
except LookupError as e:
await interaction_message.edit(f"Something went wrong.\nError: `{e}`", ephemeral=True)
return
async with session.get(await self.get_url(interaction.guild, "resources", headers=headers)) as response:
async with session.get(await self.get_url(interaction.guild, "resources"), headers=headers) as response:
response_dict = response.json()
async with session.get(await self.get_url(interaction.guild, "startup", headers=headers)) as response:
async with session.get(await self.get_url(interaction.guild, "startup"), headers=headers) as response:
list_var_response_dict = response.json()
updater_startup_vars = [
{