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 0f73bbaabc - Show all commits

View file

@ -32,7 +32,7 @@ class Pterodactyl(commands.Cog):
"Content-Type": "application/json",
"Accept": "application/json"
}
url = f"https://{await self.config.guild(guild).base_url}/api/client/servers/{await self.config.guild(guild).server_id}"
url = f"https://{await self.config.guild(guild).base_url()}/api/client/servers/{await self.config.guild(guild).server_id()}"
if endpoint:
url += '/' + endpoint
async with aiohttp.ClientSession(url=url, headers=headers) as session: