From 1324f829b84c0af5b1ebd3c517ba71cdadd71d53 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 16 Jul 2023 07:58:33 -0400 Subject: [PATCH] fix: possibly fixed get_url in the update buttons --- pterodactyl/ptero.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 47aff93..4216857 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -119,10 +119,11 @@ class Pterodactyl(commands.Cog): def __init__(self, timeout, passed_info): super().__init__() self.passed_info = passed_info + self.config = Config.get_conf(self, identifier=457581387213637448123567) @ui.button(label="Yes", style=discord.ButtonStyle.success) async def yes_button(self, button:ui.Button, interaction:discord.Interaction): - requests.post(await Pterodactyl.get_url(self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "stop"}) + requests.post(await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "stop"}) await self.passed_info['interaction'].edit_original_response("Server stopping...", view=None) while True: async with aiohttp.ClientSession() as session: