From ee6e900e7d15c1ebe1814b61377815330e2225f9 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Thu, 29 Feb 2024 16:55:45 -0500 Subject: [PATCH] fix(pterodactyl): fixed incorrect config name --- pterodactyl/pterodactyl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pterodactyl/pterodactyl.py b/pterodactyl/pterodactyl.py index af3465a..8982f48 100644 --- a/pterodactyl/pterodactyl.py +++ b/pterodactyl/pterodactyl.py @@ -122,7 +122,7 @@ class Pterodactyl(commands.Cog): async def get_info(self, username: str) -> Optional[dict]: self.logger.debug("Retrieving player info for %s", username) - endpoint = await self.config.endpoint() + endpoint = await self.config.api_endpoint() async with aiohttp.ClientSession() as session: async with session.get(f"https://playerdb.co/api/player/{endpoint}/{username}") as response: if response.status == 200: