Refactor Pterodactyl cog to use aiohttp #2
1 changed files with 2 additions and 2 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
Reference in a new issue