From 0f73bbaabc0e24896ee26765fe598c37c56f30e0 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 12:52:59 -0400 Subject: [PATCH] fix: fixed get_session --- pterodactyl/ptero.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 9d6acbd..c0d686f 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -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: