From ef662d81b1656e3abe0aa3ee2dd6fb0990a5f7ac Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Sun, 23 Jul 2023 14:32:49 -0400 Subject: [PATCH] fix: applied previous fix to UpdateButtons --- pterodactyl/ptero.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index f4f09c3..57dc7ea 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -233,7 +233,7 @@ class Pterodactyl(commands.Cog): await asyncio.sleep(2) continue for data in self.passed_info['updater_startup_vars']: - await session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data) + await session.put(self, url=await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], json=data) await session.post(url=await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "start"}) await self.passed_info['interaction'].edit_original_response(content="Updater started...") await asyncio.sleep(2) @@ -247,7 +247,7 @@ class Pterodactyl(commands.Cog): await asyncio.sleep(1) continue for data in self.passed_info['old_startup_vars']: - await session.put(self, await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], data=data) + await session.put(self, await Pterodactyl.get_url(self, self.passed_info['guild'], "startup/variable"), headers=self.passed_info['headers'], json=data) await asyncio.sleep(2) await session.post(url=await Pterodactyl.get_url(self, self.passed_info['guild'], "power"), headers=self.passed_info['headers'], json={"signal": "start"}) await self.passed_info['interaction'].edit_original_response(content="Server starting...")