diff --git a/pterodactyl/ptero.py b/pterodactyl/ptero.py index f73221a..f4f09c3 100644 --- a/pterodactyl/ptero.py +++ b/pterodactyl/ptero.py @@ -105,7 +105,7 @@ class Pterodactyl(commands.Cog): ] if response_dict['attributes']['current_state'] == "offline": for data in updater_startup_vars: - await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, data=data) + await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, json=data) await session.post(await self.get_url(interaction.guild, "power"), headers=headers, json={"signal": "start"}) await interaction_message.edit(content="Updater started...") await asyncio.sleep(1) @@ -119,7 +119,7 @@ class Pterodactyl(commands.Cog): await asyncio.sleep(1) continue for data in old_startup_vars: - await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, data=data) + await session.put(await self.get_url(interaction.guild, "startup/variable"), headers=headers, json=data) await interaction_message.edit(content="Updater finished.\nUpdate process completed!") elif response_dict['attributes']['current_state'] == "running" or response_dict['attributes']['current_state'] == "starting": passed_info = {