diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index 54c884a..592677b 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -122,7 +122,7 @@ class Pterodactyl(commands.Cog): @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, self.passed_info['interaction_context'].guild, "power"), headers=self.passed_info['headers'], json={"signal": "stop"}) + requests.post(await Pterodactyl.get_url(self.passed_info['interaction_context'].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: